/[sshproxy]/sshproxy/SSH
ViewVC logotype

Diff of /sshproxy/SSH

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dguerizec, Thu Aug 4 09:32:50 2005 UTC revision 1.3 by pyrofes, Fri Nov 18 09:39:35 2005 UTC
# Line 23  import sys, os Line 23  import sys, os
23  import getpass  import getpass
24  import paramiko  import paramiko
25  from SSHproxy.client import start_client  from SSHproxy.client import start_client
26  from SSHproxy import Version  from SSHproxy import Version, SSHproxyError
27  from optparse import OptionParser  from optparse import OptionParser
28    
29  usage = """  usage = """
# Line 73  paramiko.util.log_to_file(options.logfil Line 73  paramiko.util.log_to_file(options.logfil
73    
74  password = getpass.getpass("Password: ")  password = getpass.getpass("Password: ")
75    
76  start_client(username=username,  try:
77               password=password,          start_client(username=username,
78               proxy=proxy,                  password=password,
79               port=port,                  proxy=proxy,
80               ruser=ruser,                  port=port,
81               hostname=hostname,                  ruser=ruser,
82               rport=rport)                  hostname=hostname,
83                    rport=rport)
84    except SSHproxyError, msg:
85            print msg
86    except AttributeError:
87            print 'Unable to connect to proxy'

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26