Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
#!/usr/bin/expect
# Login to SSH with password automatically
# Requires expect:
# sudo apt-get install expect
set timeout 60
spawn ssh gnufs@nsa.gov
while {1} {
expect {
eof {break}
"The authenticity of host" {send "yes\r"}
"password:" {send "p4ssw0rd\r"}
"*\]" {send "exit\r"}
}
}
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.