Subj : SSH login To : All From : Bencollver Date : Sun Apr 02 2023 12:27:52 I use SSH to login from my Linux box. Unfortunately, the server software only supports password auth. Yesterday, i forgot to type in my BBS password, and typed in the password for my SSH key instead. Thus, i "leaked" my personal password to the BBS software. So i changed my personal password. To avoid repeating this error, i adapted a small expect script to type in my BBS password for me. If you're interested, here it is: #!/usr/bin/expect -f # Note: the "pass" command comes from passwordstore.org set timeout 10 set host "endofthelinebbs.com" set user "Bencollver" set password [exec pass Passwords/endofthelinebbs.com | head -1] spawn ssh -l $user $host expect { "?assword*" { send "$password\n" interact exit 0 } } exit 1 .