Amazon EC2 SSH server sent: ( publickey, gssapi-keyex,gssapi-with-mic)

14,544

Solution 1

My security groups were incorrect. I remade the instance with the correct security groups

Solution 2

The below steps worked for me.

  1. Edit sshd_config file sudo vi /etc/ssh/sshd_config.
  2. Search for PasswordAuthentication
  3. If it is no, change it to yes. For me it was commented. If so, uncomment it.
  4. Restart sshd service sudo systemctl restart sshd.service

Done.

Share:
14,544
rubio
Author by

rubio

Updated on June 10, 2022

Comments

  • rubio
    rubio almost 2 years

    I get this error message when trying to connect with ssh.

    Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)

    I create a instances(cent os), generated my webserver.pem, puttygen imported that and output a ppk

    I have seen that it may be a permissions issue with the ~/.ssh on the server but how can i change the permissions on the server without ssh access to the server? Is there another way to connect that i am not aware of? I am quite new to the amazon ec2 stuff.

    I am on a windows system right now using putty.