Can Rebex SFTP send user / password + ssh-key ?

0 votes
asked Sep 11, 2018 by moe (130 points)

Remote SFTP server is requiring user+password+ssh key.
Is that something Rebex SFTP does out-of-the-box? If so, how?

If not, would this be something you would expect can be handled by the AuthenticationRequest callback (if triggered)? ie: Log in normally with user/ssh-key and then see if I can send password in response.

Basically, how would you expect to handle this situation?

1 Answer

0 votes
answered Sep 12, 2018 by Lukas Matyska (59,530 points)

Yes, it is possible.

Just simply use the Login(string userName, string password, SshPrivateKey privateKey) method overload.