Last active
August 12, 2018 20:13
-
-
Save jrwrigh/e1ad29939915971e4b6c12f8f4fab422 to your computer and use it in GitHub Desktop.
stackoverflow question support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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