[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sshproxy-dev] Changes to sshproxy/SSH
From: |
Pierre-Yves Rofes |
Subject: |
[sshproxy-dev] Changes to sshproxy/SSH |
Date: |
Fri, 18 Nov 2005 04:39:37 -0500 |
Index: sshproxy/SSH
diff -u sshproxy/SSH:1.2 sshproxy/SSH:1.3
--- sshproxy/SSH:1.2 Thu Aug 4 09:32:50 2005
+++ sshproxy/SSH Fri Nov 18 09:39:35 2005
@@ -23,7 +23,7 @@
import getpass
import paramiko
from SSHproxy.client import start_client
-from SSHproxy import Version
+from SSHproxy import Version, SSHproxyError
from optparse import OptionParser
usage = """
@@ -73,11 +73,15 @@
password = getpass.getpass("Password: ")
-start_client(username=username,
- password=password,
- proxy=proxy,
- port=port,
- ruser=ruser,
- hostname=hostname,
- rport=rport)
-
+try:
+ start_client(username=username,
+ password=password,
+ proxy=proxy,
+ port=port,
+ ruser=ruser,
+ hostname=hostname,
+ rport=rport)
+except SSHproxyError, msg:
+ print msg
+except AttributeError:
+ print 'Unable to connect to proxy'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sshproxy-dev] Changes to sshproxy/SSH,
Pierre-Yves Rofes <=