SSH キーを使用したログインが、"userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]" というエラーにより失敗する
Issue
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.