Skip to content

Instantly share code, notes, and snippets.

@jrwrigh
Last active August 12, 2018 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrwrigh/e1ad29939915971e4b6c12f8f4fab422 to your computer and use it in GitHub Desktop.
Save jrwrigh/e1ad29939915971e4b6c12f8f4fab422 to your computer and use it in GitHub Desktop.
stackoverflow question support
#!/usr/bin/env python3
import pexpect
shell = pexpect.spawn('/bin/bash')
shell.sendline('ssh -t node0001')
shell.interact()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment