3

Im trying automate the login process using shell script.

I got MFA + pub key authentication working.

However Im stuck at how to pass verfication code as a parameter to ssh command.

I tried go through ssh pages and stuff but could not able to find.

For ex: ssh username@example.com -someoption verticationcode

Or if there is any way. Im more than happy to use it.

Uday Kiran
  • 31
  • 1
  • 2
    Typically one uses multi factor authentication to prevent automated logins... But maybe [`sshpass`](http://linux.die.net/man/1/sshpass) might be of use there – HBruijn Mar 03 '16 at 06:09

0 Answers0