Warren
45fdc9c42c
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
Fix SSH auth: All USERAUTH_FAILURE responses must return auth methods list
Complete fix for SSH authentication protocol compliance:
- User not found: returns 'password,publickey' (not 'Invalid user')
- Password invalid: returns 'password,publickey' (not 'Invalid password')
- Publickey not implemented: returns 'password' (fixed in previous commit)
RFC 4253 Section 5.1 requirement:
SSH_MSG_USERAUTH_FAILURE SSH string must contain comma-separated
list of authentication method names that can continue
Test results:
sshpass -p 'demo123' ssh demo@127.0.0.1 'echo test': Auth Final SUCCESS ✓
All authentication failure messages now correctly formatted ✓
Files modified:
- auth.rs: Fixed all Failure responses to return auth methods list