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.
- Edit sshd_config file
sudo vi /etc/ssh/sshd_config
. - Search for
PasswordAuthentication
- If it is
no
, change it toyes
. For me it was commented. If so, uncomment it. - Restart sshd service
sudo systemctl restart sshd.service
Done.
Author by
rubio
Updated on June 10, 2022Comments
-
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.