Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = 'ssh -tt -o NumberOfPasswordPrompts=1 -o StrictHostKeyChecking=no <myuse>@<my server>'
- p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
- p.communicate('password!n')
Add Comment
Please, Sign In to add comment