Problem: Permission Denied
1 2 3 4 | [edc@ftp .ssh]$ sftp [email protected] Permission denied (publickey,keyboard-interactive). Couldn't read packet: Connection reset by peer [edc@ftp .ssh]$ |
If the users authorized_keys file has an incorrect permission then the login will be denied, even if the permission allows the user logging in.
For example: file C:\Users\appworx\.ssh\authorized_keys was created by user appworx, then user Administrator made edits to the file in order to add another public key.
Solution: ensure that the .ssh and authorized_keys files are owned by SYSTEM and the OS user only.