daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Feb 4th, 2016 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. t = paramiko.Transport(('192.168.56.102', 22))  
  2. t.connect(username='vagrant', password='vagrant')
  3. chan = t.open_session()
  4. chan.get_pty()
  5. chan.invoke_subsystem('sftp')
  6. chan.exec_command('sudo su')
  7. sftp = paramiko.SFTPClient.from_transport(t)
  8.    
  9. paramiko.ssh_exception.SSHException: Channel closed.
  10. DEBUG:paramiko.transport:EOF in transport thread
  11.    
  12. chan.exec_command('sudo su -c /bin/sftp-server')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top