/[sshproxy]/sshproxy/SSHproxy/client/ssh.py
ViewVC logotype

Diff of /sshproxy/SSHproxy/client/ssh.py

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

revision 1.7 by dguerizec, Mon Sep 26 13:35:37 2005 UTC revision 1.8 by pyrofes, Thu Oct 27 14:14:36 2005 UTC
# Line 84  class SSHClient(object): Line 84  class SSHClient(object):
84              self.transport.connect(username=username,              self.transport.connect(username=username,
85                                     password=password,                                     password=password,
86                                     hostkey=self.hostkey)                                     hostkey=self.hostkey)
87      
88          except paramiko.ssh_exception.SSHException, e:          except paramiko.ssh_exception.SSHException, e:
89              print e              print e
90              # let's force close chans              # let's force close chans
# Line 174  class SSHClient(object): Line 175  class SSHClient(object):
175                              self.reset_term()                              self.reset_term()
176                              self.fdout.write("\n")                              self.fdout.write("\n")
177                              self.cmd.cmdloop()                              self.cmd.cmdloop()
178                                print 'end console'
179                              fcntl.fcntl(self.fdin, fcntl.F_SETFL, os.O_NDELAY)                              fcntl.fcntl(self.fdin, fcntl.F_SETFL, os.O_NDELAY)
180                              self.set_term()                              self.set_term()
181                              # send ^L to clear screen and restore cmd line                              # send ^L to clear screen and restore cmd line
# Line 182  class SSHClient(object): Line 184  class SSHClient(object):
184                          continue                          continue
185    
186                      self.session.send(x)                      self.session.send(x)
187                    if not (self.transport.is_active() and self.session.active):
188                        print 'end session...'
189          finally:          finally:
190              self.reset_term()              self.reset_term()
191    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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