Files
born2beroot/ssh.exp

10 lines
270 B
Plaintext
Raw Normal View History

2021-11-08 14:58:27 +01:00
#!/usr/bin/expect --
2021-11-08 14:25:55 +01:00
set timeout -1
set send_human {.05 0.1 1 .07 1.5}
eval spawn ssh -o StrictHostKeyChecking=no -o PreferredAuthentications=password -o PubkeyAuthentication=no $argv
match_max 100000
expect "*?assword:*"
send -- "$env(SSHPASS)\r"
send -- "\r"
interact