2FA to 0FA
because I can.. (but you really shouldn’t)
#!/usr/bin/expect -f spawn oathtool --base32 --totp $KEY -d 6 expect -re \\d+ set CODE $expect_out(0,string) spawn ssh $SERVER expect "Verification code:" send "$CODE\n" expect "Password:" send "$PASSWORD\n" interact