Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

I've tried all the permission related posts, etc.,

This is a new AlmaLinux8 linode.
I have the ssd_config file set to

PermitRootLogin yes
PubkeyAuthentication yes
PasswordAuthentication no
AuthorizedKeysFile .ssh/authorized_keys

permissions on the .ssh folder is 0700
permissions on the authorized__keys file is 0600
they are all owned by root.

[root@143-42-8-159 ~]# ls -la
drwx------.  2 root root 4096 Feb 22 19:21 .ssh
[root@143-42-8-159 ~]# ls -la .ssh
-rw-------. 1 root root  820 Feb 22 18:42 authorized_keys

What else can I check?

Thanks.

2 Replies

I get turned around on this when creating a new server sometimes too. You can troubleshoot your SSH connection using this guide to get started.

What I usually end up doing though, is starting from the Harden SSH Access section of the getting started guide to make sure I followed all the steps in order. This has resolved my issues in the past.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct