Access to the server over SSH does not work: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)

Refers to:

  • Plesk for Linux

Created:

2016-11-16 12:55:01 UTC

Modified:

2017-02-13 21:50:10 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Access to the server over SSH does not work: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)

Symptoms

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 /bin/bash (chroot) :

Subscriptions > example.com > Websites & Domains> Web Hosting Access > Access to the server over SSH = /bin/bash (chrooted)

Cause

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

Resolution

You need to change the sshd_config file in the remote server (probably in /etc/ssh/sshd_config ).

Change the line

PasswordAuthentication no

to

PasswordAuthentication yes

And then restart the sshd daemon.

service sshd restart
Have more questions? Submit a request
Please sign in to leave a comment.