Skip to content

Instantly share code, notes, and snippets.

@houbysoft
Created October 11, 2012 06:40
Show Gist options
  • Save houbysoft/3870619 to your computer and use it in GitHub Desktop.
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
#!/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