Guest User

Untitled

a guest
Dec 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. args = 'ssh -tt -o NumberOfPasswordPrompts=1 -o StrictHostKeyChecking=no <myuse>@<my server>'
  2. p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
  3. p.communicate('password!n')
Add Comment
Please, Sign In to add comment