Access to a Plesk server over SSH/SFTP under a subscription’s system user fails with one of the following error messages:
Permission denied (publickey).
Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
can't connect to remote host: authentication failed
- Access to the server over SSH is allowed at Domains > example.com > Web Hosting Access.
Password authentication for SSH connections is not enabled on the server:
# grep PasswordAuthentication /etc/ssh/sshd_config
Note: This solution is intended for Plesk administrators only. If you are a domain owner, please contact your service provider for assistance.
Connect to the Plesk server via SSH.
Create a backup of the
# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.back
/etc/ssh/sshd_configfile in a text editor. In this example, we are using the vi editor:
# vi /etc/ssh/sshd_config
Enable password authentication for SSH connections:
Save the changes sand close the file.
Restart the SSH service:
# service sshd restart