You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hard to say without the code, but you don't need to do anything except call authenticate_password, receive the expected Ok(false), and then call authenticate_publickey
I'd say it's implementation specific as the SSH protocol has no actual provision for requiring multiple authentication methods.
There is no physical distinction between the server rejecting the key because it's wrong and rejecting it because it's right but it needs a password too.
Hi!
I've been trying to get SFTP to work with a server that requires both key and username/password authentication, but I can't seem to make it work.
I've been combing through the examples and the docs.rs (
client::Config
, etc.) but I can't seem to figure it out.Is this feature currently supported? Has anyone done it before?
Any help would be greatly appreciated.
Thanks!
OpenSSH Server Configuration
/etc/ssh/sshd_config
:Restart the SSH service:
Environment:
russh
crate version:0.49
russh-sftp
crate version:2.0.6
russh-keys
crate version:0.49
rustc 1.86.0
The text was updated successfully, but these errors were encountered: