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)
|
transport.auth_publickey(username, key)
|
||||||
print '... success!'
|
print '... success!'
|
||||||
return
|
return
|
||||||
except SSHException:
|
except paramiko.SSHException:
|
||||||
print '... nope.'
|
print '... nope.'
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ try:
|
||||||
t = paramiko.Transport(sock)
|
t = paramiko.Transport(sock)
|
||||||
try:
|
try:
|
||||||
t.start_client()
|
t.start_client()
|
||||||
except SSHException:
|
except paramiko.SSHException:
|
||||||
print '*** SSH negotiation failed.'
|
print '*** SSH negotiation failed.'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ try:
|
||||||
server = Server()
|
server = Server()
|
||||||
try:
|
try:
|
||||||
t.start_server(server=server)
|
t.start_server(server=server)
|
||||||
except SSHException, x:
|
except paramiko.SSHException, x:
|
||||||
print '*** SSH negotiation failed.'
|
print '*** SSH negotiation failed.'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue