Created
August 29, 2016 06:21
-
-
Save Rudis1261/5c5cbf104ab77bcf28259a9f855ad083 to your computer and use it in GitHub Desktop.
SSH Login Script - The Dirty Way
This file contains hidden or 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 -f | |
# REPLACE, <user>, <host> and <password> | |
spawn ssh <user>@<host> | |
expect "assword:" | |
send "<password>\r" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chmod +x login.sh
<user>
,<password>
and<host>
with your server's details