Created
October 11, 2012 06:40
-
-
Save houbysoft/3870619 to your computer and use it in GitHub Desktop.
How to login to SSH server without a password when public key authentication is disallowed
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/expect | |
spawn ssh you@server | |
expect "password:" | |
send "yourpasswordgoeshere\n" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment