Applicable to:
- Plesk for Linux
Symptoms
-
Access to a Plesk server over SSH/SFTP under a subscription's system user fails with one of the following error messages:
CONFIG_TEXT: Permission denied (publickey).
CONFIG_TEXT: Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
CONFIG_TEXT: can't connect to remote host: authentication failed
- SSH access is set to some shell (not Forbidden) at Domains > example.com > Hosting & DNS tab > Hosting > Web Hosting Access.
Cause
Password authentication for SSH connections is not enabled on the server:
# grep PasswordAuthentication /etc/ssh/sshd_config
PasswordAuthentication no
Resolution
Note: This solution is intended for Plesk administrators only. If you are a domain owner, please contact your service provider for assistance.
- Connect to your Plesk server via SSH.
-
Create a backup of the file
/etc/ssh/sshd_config:# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
-
Open
/etc/ssh/sshd_configin a text editor. In this example, we are using vi editor:# vi /etc/ssh/sshd_config
-
Enable password authentication for SSH connections:
CONFIG_TEXT: PasswordAuthentication yes
- Save the changes sand close the file.
-
Restart the SSH service:
# service sshd restart
Comments
How exactly should I login to the server over ssh, if the server does not login over ssh?
The full tutorial is bullshit.
Please sign in to leave a comment.