Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to login outside SSH server ? #38

Closed
spooning opened this issue Aug 14, 2014 · 2 comments
Closed

How to login outside SSH server ? #38

spooning opened this issue Aug 14, 2014 · 2 comments

Comments

@spooning
Copy link
Contributor

Originally submitted to Google Code by aloha.in... on 2 Nov 2011

What steps will reproduce the problem?

  1. vim resources/user_information.py
  2. vim resources/ssh_library_resource.txt (as same as your atest/resources)
  3. vim myFirstSSHTest.txt

What is the expected output? What do you see instead?

Login successfully , but I see
No match found for '$' in 3 seconds

What version of the product are you using? On what operating system?

sshlibrary 1.0
Ubuntu 11.10

Please provide any additional information below.
I do not change ssh_library_resource.txt .
I just change user_information.py file , as below

HOST = "my.server.ip"
USERNAME = "test"
PASSWORD = "password"

and my myFirstSSHTest.txt as below

Settings
Resource resources/ssh_library_resource.txt

Test Case
Test Opening and Closing Connection
Open Connection ${HOST}
Login ${USERNAME} ${PASSWORD}
Close All Connections

Sorry about that I am a novice ~
Is there any wrong?
or The problem is about , if i try login manually , it will show

The authenticity of host 'my.server.ip. ' can't be established.
RSA key fingerprint is 31:4f:de:8f:0e:0a:61:6a:fc:c0:fb:8e:e7:62:6f:c0.
Are you sure you want to continue connecting (yes/no)?

sorry to bother you ~
But thanks a lot

@spooning
Copy link
Contributor Author

Originally submitted to Google Code by aloha.in... on 3 Nov 2011

Hi ~ I find the solution , but I don't know is it right?
But I can login right now!
the problem is in resources/ssh_library_resource.txt file

*** Settings ***
Library SSHLibrary ${EMPTY} ${EMPTY} $
Variables user_information.py

I change it to be
*** Settings ***
Library SSHLibrary ${EMPTY} ${EMPTY}
Variables user_information.py

It work!

@spooning
Copy link
Contributor Author

Originally submitted to Google Code by @pekkaklarck on 5 Nov 2011

Good that you got the problem solved. Your problem was that you originally configured the prompt the library uses incorrectly. What prompt to use depends on the system. Configuring the prompt is discussed in the library documentation.

Notice that instead of

Library         SSHLibrary  ${EMPTY}  ${EMPTY}  

you could just use

Library         SSHLibrary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant