Hey, #Fediverse I need your help.
I want to login to a local server via #SSH.
The password-based authentication works without any problems.
I can do stuff and even copy my public keys, but as soon as I want to switch to the pubkey-based login, I get an error: Permission denied (publickey).
Have you got any ideas, how to fix this or where to look further?

#GNU #Linux #SSH #FreeSoftware

@egnun And on your local machine:

$ chmod 700 ~/.ssh
$ chmod 600 ~/.ssh/key

@edibleaudio Thanks, the file permissions are fine.
It let's me copy the keys to the server. I also tried deleting the ./ssh/authorized_keys entirely and let SSH create a new file.

Follow

@egnun Bummer. Well there are a few troubleshooting options listed at the bottom of wiki.archlinux.org/title/SSH_k which should help you get to the bottom of it!

· · Web · 1 · 0 · 1

@edibleaudio The Arch wiki, of course! Why didn't I think of this earlier?

@egnun
Have you checked /etc/ssh/sshd.conf
and turned it off and on again (of course)? ;)
@edibleaudio

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!