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: David Guerizec
Subject: [sshproxy-dev] Changes to sshproxy/SSHproxy/client/ssh.py
Date: Mon, 26 Sep 2005 05:14:16 -0400

Index: sshproxy/SSHproxy/client/ssh.py
diff -u sshproxy/SSHproxy/client/ssh.py:1.5 sshproxy/SSHproxy/client/ssh.py:1.6
--- sshproxy/SSHproxy/client/ssh.py:1.5 Fri Sep 23 15:35:45 2005
+++ sshproxy/SSHproxy/client/ssh.py     Mon Sep 26 09:14:16 2005
@@ -80,7 +80,7 @@
 
     def connect(self, username, password):
         try:
-            self.hostkey = None
+            #self.hostkey = None
             self.transport.connect(username=username,
                                    password=password,
                                    hostkey=self.hostkey)
@@ -171,14 +171,14 @@
                         # increment the following number if only one Ctrl-K
                         # interferes with another application
                         if CK >= 1:
-                           self.reset_term()
-                           self.fdout.write("\n")
-                           self.cmd.cmdloop()
-                           fcntl.fcntl(self.fdin, fcntl.F_SETFL, os.O_NDELAY)
-                           self.set_term()
+                            self.reset_term()
+                            self.fdout.write("\n")
+                            self.cmd.cmdloop()
+                            fcntl.fcntl(self.fdin, fcntl.F_SETFL, os.O_NDELAY)
+                            self.set_term()
                             # send ^L to clear screen and restore cmd line
-                           self.session.send(chr(12))
-                           CK = 0
+                            self.session.send(chr(12))
+                            CK = 0
                         continue
 
                     self.session.send(x)




reply via email to

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