159. SFTP authentication fails with error Permission Denied (keyboard-interactive)
The following applies to OpenSSH server when using public key authentication.
The below error is shown when connecting to the SFTP server from EzeScan:
Reason:
A recent Windows update has rolled out a newer version of OpenSSH.
This version of OpenSSH has removed ssh-rsa
from the default public key accepted algorithms.
This can be confirmed by the presence of the below error in sshd debug logs:
userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms
Resolution:
Add the below line to the sshd configuration (located at
C:\ProgramData\ssh\sshd_config
)PubkeyAcceptedAlgorithms +ssh-rsa
For example:Restart the
OpenSSH SSH Server
windows service