Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. self.sctrl = server.SSHUserPassController(username=self.username,
  2. password=self.password)
  3.  
  4. print "created ctrl"
  5. self.nc_server = server.NetconfSSHServer(server_ctl=self.sctrl,
  6. server_methods=NetconfMethods(),
  7. port=int(self.port),
  8. debug=self.debug)
  9. print "created nc_server"
  10.  
  11. self.ssh = client.NetconfSSHSession(self.host,
  12. username="abc",
  13. password="abc",
  14. port=int(self.nc_server.port),
  15. debug=NC_DEBUG)
  16. print "created netconf session"
  17.  
  18. created sctrl
  19. created nc server
  20. DEBUG:paramiko.transport:starting thread (client mode): 0x339be30L
  21. DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_2.0.0
  22. DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-libssh-0.7.1
  23. INFO:paramiko.transport:Connected (version 2.0, client libssh-0.7.1)
  24. DEBUG:paramiko.transport:M inside kex init ¶æ|5ùü♠8δM▓▄α╙↓ëk ~diffie-hellman-g
  25. roup1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie
  26. -hellman-group-exchange-sha256 Kssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2
  27. -nistp384,ecdsa-sha2-nistp521 maes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,blo
  28. wfish-cbc,aes192-cbc,aes256-cbc,3des-cbc,arcfour128,arcfour256 maes128-ctr,aes
  29. 192-ctr,aes256-ctr,aes128-cbc,blowfish-cbc,aes192-cbc,aes256-cbc,3des-cbc,arcfou
  30. r128,arcfour256 Ghmac-sha2-256,hmac-sha2-512,hmac-md5,hmac-sha1-96,hmac-md5-96
  31. ,hmac-sha1 Ghmac-sha2-256,hmac-sha2-512,hmac-md5,hmac-sha1-96,hmac-md5-96,hmac
  32. -sha1 ♦none ♦none
  33. DEBUG:paramiko.transport:ptype 1
  34. DEBUG:paramiko.transport:m ♂ Bye Bye
  35. DEBUG:paramiko.transport:MSG_DISCONNECT
  36. INFO:paramiko.transport:Disconnect (code 11): Bye Bye
  37. Traceback (most recent call last):
  38. File "__init__.py", line 130, in <module>
  39. netconf.test_query()
  40. File "__init__.py", line 58, in test_query
  41. debug=True)
  42. File "C:Python27libsite-packagesnetconfclient.py", line 167, in __init__
  43. stream = sshutil.conn.SSHClientSession(host, port, "netconf", username, pass
  44. word, debug)
  45. File "C:Python27libsite-packagessshutilconn.py", line 398, in __init__
  46. super(SSHClientSession, self).__init__(host, port, username, password, debug
  47. )
  48. File "C:Python27libsite-packagessshutilconn.py", line 76, in __init__
  49. self.ssh = self.get_ssh_socket(host, port, username, password, debug)
  50. File "C:Python27libsite-packagessshutilconn.py", line 214, in get_ssh_soc
  51. ket
  52. sshsock.start_client(event)
  53. File "C:Python27libsite-packagesparamikotransport.py", line 494, in start
  54. _client
  55. raise SSHException('Negotiation failed.')
  56. paramiko.ssh_exception.SSHException: Negotiation failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement