#Permission denied(publickey)

1 messages · Page 1 of 1 (latest)

manic belfry
#

Hey, im fighting since a couple hrs with the following issue see title

Ubuntu 22.04 LTS

ssh keys are located at the default location right now, folder perms etc are also set correctly. Double checked the ssh key inside the authorized_keys, im using the correct private key with "ssh -i key root@localhost -p 9876

my etc/ssh/sshd_config parameters im using, reloading sshd each time i do changes to the file

Port 9876
PermittedRootLogin yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
PubkeyAuthentication yes
magic jacinth
#

Did you check the known_hosts file ?