fix SSHException references in demos
This commit is contained in:
parent
ffcc22e784
commit
55a52a09cc
|
@ -50,7 +50,7 @@ def agent_auth(transport, username):
|
|||
transport.auth_publickey(username, key)
|
||||
print '... success!'
|
||||
return
|
||||
except SSHException:
|
||||
except paramiko.SSHException:
|
||||
print '... nope.'
|
||||
|
||||
|
||||
|
@ -118,7 +118,7 @@ try:
|
|||
t = paramiko.Transport(sock)
|
||||
try:
|
||||
t.start_client()
|
||||
except SSHException:
|
||||
except paramiko.SSHException:
|
||||
print '*** SSH negotiation failed.'
|
||||
sys.exit(1)
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ try:
|
|||
server = Server()
|
||||
try:
|
||||
t.start_server(server=server)
|
||||
except SSHException, x:
|
||||
except paramiko.SSHException, x:
|
||||
print '*** SSH negotiation failed.'
|
||||
sys.exit(1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue