Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import time
- import pexpect
- command = "sshfs root@localhost:/sdcard/ /media/sdcard/"
- try:
- sshfs = pexpect.spawn(command)
- sshfs.expect("root@localhost's password: ")
- time.sleep (0.1)
- sshfs.sendline ("yourpassword")
- time.sleep (0.1)
- sshfs.expect (pexpect.EOF)
- except Exception, e:
- print str(e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement