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
The ssh2 crate currently does not support SSH authentication when the server enforces both public key and password authentication in the same session using:
AuthenticationMethods publickey,password
This configuration requires the client to first authenticate with a public key and then provide a password before authentication is considered successful. However, ssh2-rs only supports using one method at a time and does not allow chaining authentication methods in a single session.
Steps to Reproduce:
Configure the SSH server (/etc/ssh/sshd_config) with:
The
ssh2
crate currently does not support SSH authentication when the server enforces both public key and password authentication in the same session using:This configuration requires the client to first authenticate with a public key and then provide a password before authentication is considered successful. However,
ssh2-rs
only supports using one method at a time and does not allow chaining authentication methods in a single session.Steps to Reproduce:
/etc/ssh/sshd_config
) with:Restart the SSH service:
ssh2-rs
with both a key and a password:Expected Behavior:
The
ssh2
crate should allow chaining authentication methods in the same session when the server enforcespublickey,password
.Actual Behavior:
userauth_pubkey_file()
), butuserauth_password()
fails.userauth_password()
is called first,userauth_pubkey_file()
is never executed.publickey,password
authentication.Environment:
ssh2
crate version:0.10
rustc 1.82.0
Additional Context:
PEM
is used and works with manual SSH).publickey,password
is enforced by the SSH server.The text was updated successfully, but these errors were encountered: