devzat: Server doesn't accept RSA SHA-2 keys.

I’m getting a permission denied error even though I have a public key generated. Any ideas?

λ ssh pixelmonk@devzat.hackclub.com
pixelmonk@devzat.hackclub.com: Permission denied (publickey).

λ ls ~/.ssh
id_rsa  id_rsa.pub  known_hosts  known_hosts.old

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 23 (16 by maintainers)

Most upvoted comments

λ ssh -v devzat.hackclub.com
OpenSSH_8.8p1, OpenSSL 1.1.1l  24 Aug 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to devzat.hackclub.com [150.136.142.44] port 22.
debug1: Connection established.
debug1: identity file /c/Users/Chris/.ssh/id_rsa type 0
debug1: identity file /c/Users/Chris/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/Chris/.ssh/id_dsa type -1
debug1: identity file /c/Users/Chris/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/Chris/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/Chris/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/Chris/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/Chris/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/Chris/.ssh/id_ed25519 type 3
debug1: identity file /c/Users/Chris/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/Chris/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/Chris/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/Chris/.ssh/id_xmss type -1
debug1: identity file /c/Users/Chris/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.8
debug1: Remote protocol version 2.0, remote software version Go
debug1: compat_banner: no match: Go
debug1: Authenticating to devzat.hackclub.com:22 as 'Chris'
debug1: load_hostkeys: fopen /c/Users/Chris/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: (no match)
Unable to negotiate with 150.136.142.44 port 22: no matching host key type found. Their offer: ssh-rsa

~/.ssh
λ ls
id_ed25519  id_ed25519.pub  id_rsa  id_rsa.pub  known_hosts  known_hosts.old