Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh = paramiko.SSHClient()
- ssh.load_system_host_keys()
- ssh.load_host_keys(os.path.expanduser(os.path.join("~", ".ssh", "known_hosts")))
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect("IP", username = "root")
- File "/usr/local/lib/python2.7/dist-packages/Qb/QbUnittest/QbUnittest.py", line 624, in __call__
- testMethod()
- File "testDropBear_send_file.py", line 34, in runMe
- ssh.connect(self.terminal.xmlTerminalCfg.getIp(), username = USER_NAME)
- File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line 367, in connect
- look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
- File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line 584, in _auth
- raise saved_exception
- AuthenticationException: Authentication failed.
- ssh.connect("IP", username = "root", password="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement