Contents
Can a server use keyboard-interactive authentication for SSH?
Implementing a full keyboard-interactive authentication can be a bit more complicated than the other authentication types. But as servers commonly use keyboard-interactive authentication to ask for a single fixed password, some SSH libraries offer a shortcut for this scenario.
What’s the difference between password and keyboard interactive authentication?
People become confused by this because by default, “keyboard-interactive” authentication usually just implements password authentication in a single challenge-response cycle, which just prompts for a password, thus looking exactly the same as “password authentication”.
How to get over keyboard-interactive authentication prompt?
I could write the username but it never accepted the password, also my external ip address did not even made connection, local ip server address worked but password always failed, I was prepared to make a restore from backup, but since I had physical contact with the server, I just plugged an USB Keyboard and “voilá” all problems ended.
How to use paramiko for keyboard-interactive authentication?
If you use the password argument of Paramiko SSHClient.connect, Paramiko will respond to the first keyboard-interactive authentication prompt with the specified password. You will also have to verify the server’s host key (the same way you do do in pysftp and WinSCP). For a Paramiko solution, see Paramiko “Unknown Server”.
How to pipe a password to the SSH?
First of all, the best solution for you would be to create new ssh keypair and use this key to login to all your servers (or some, based on preferences). If you don’t know how, you can find it many times here on stackexchange, but shortcut: Basically you should set passphrase for your key, so you will log in only once with the one password.
Which is VBA script does keyboard-interactive authentication?
WinSCP .NET assembly does that in your VBA script too (you specify Password, although WinSCP does keyboard-interactive authentication, not password authentication). And Paramiko does the same.
How to do SSH two factor authentication with paramiko?
And Paramiko does the same. If you use the password argument of Paramiko SSHClient.connect, Paramiko will respond to the first keyboard-interactive authentication prompt with the specified password. You will also have to verify the server’s host key (the same way you do do in pysftp and WinSCP).