Access to the server over SSH under the subscription's system user does not work for all domains.
SSH server returns the error during the attempt to log as system user:
ssh hosting_user@<ip_address> No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
The acces is configured in Plesk Panel and set to
Subscriptions > example.com > Websites & Domains> Web Hosting Access > Access to the server over SSH =
The first thing to do in this situation is to use the
-v option to SSH, so you can see what types of authentication is tried and what the result is.
ssh -v my_system_user@<ip_address>
Check that PasswordAuthentication is allowed and review all others parameters:
# grep -v ^# /etc/ssh/sshd_config | grep -v ^$ Protocol 2 SyslogFacility AUTHPRIV PasswordAuthentication no PasswordAuthentication no ChallengeResponseAuthentication no GSSAPIAuthentication yes GSSAPICleanupCredentials yes UsePAM yes AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE AcceptEnv XMODIFIERS X11Forwarding yes Subsystem sftp /usr/libexec/openssh/sftp-server
You need to change the
sshd_config file in the remote server (probably in
Change the line
And then restart the sshd daemon.
service sshd restart