Login with SSH-Keys is failing due the following error "userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]"
Issue
- Unable to login using
ssh-keys
Apr 7 11:58:02 examplehost sshd[983201]: Connection from 192.168.0.211 port 52306 on 192.242.130.89 port 22
Apr 7 11:58:02 examplehost sshd[983201]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]
Apr 7 11:58:02 examplehost sshd[983201]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]
Apr 7 11:58:02 examplehost sshd[983201]: Failed publickey for userbob from 192.168.0.211 port 52306 ssh2: RSA SHA256:PiwOSbk+...........
Apr 7 11:58:02 examplehost sshd[983201]: Failed publickey for userbob from 192.168.0.211 port 52306 ssh2: RSA SHA256:PiwOSbk+...........
Apr 7 11:58:02 examplehost sshd[983201]: Postponed keyboard-interactive for userbob from 192.168.0.211 port 52306 ssh2 [preauth]
Apr 7 11:58:02 examplehost sshd[983201]: Postponed keyboard-interactive for userbob from 192.168.0.211 port 52306 ssh2 [preauth]
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.