sshproxy-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sshproxy-dev] Changes to sshproxy/SSHproxy/client/ssh.py


From: Pierre-Yves Rofes
Subject: [sshproxy-dev] Changes to sshproxy/SSHproxy/client/ssh.py
Date: Fri, 18 Nov 2005 04:39:37 -0500

Index: sshproxy/SSHproxy/client/ssh.py
diff -u sshproxy/SSHproxy/client/ssh.py:1.8 sshproxy/SSHproxy/client/ssh.py:1.9
--- sshproxy/SSHproxy/client/ssh.py:1.8 Thu Oct 27 14:14:36 2005
+++ sshproxy/SSHproxy/client/ssh.py     Fri Nov 18 09:39:36 2005
@@ -84,7 +84,7 @@
             self.transport.connect(username=username,
                                    password=password,
                                    hostkey=self.hostkey)
-   
+
         except paramiko.ssh_exception.SSHException, e:
             print e
             # let's force close chans
@@ -111,7 +111,7 @@
     def __del__(self):
         if self.transport:
             self.transport.close()
-        
+
     def open_session(self):
         chan = self.transport.open_session()
         chan.get_pty()
@@ -125,13 +125,13 @@
 
         if pcc is None or not pcc.invoke_subsystem('proxy-control'):
             raise SSHproxyError('Failed to invoke proxy-control subsystem')
-        
+
         pcc.ultra_debug = 1
         pcc.settimeout(0.0)
         self.proxy_control = pcc
         self.chan.append(pcc)
         return pcc
-        
+
     def close_session(self):
         if self.session:
             # let's force close chans
@@ -198,7 +198,7 @@
     def reset_term(self):
         if self.fdin == sys.stdin:
             termios.tcsetattr(self.fdin, termios.TCSADRAIN, self.oldtty)
-        
+
 
 def start_client(username, password, proxy=None, port=None,
                  ruser=None, hostname='localhost', rport=None):




reply via email to

[Prev in Thread] Current Thread [Next in Thread]