不正な設定オプション: pubkeyacceptedalgorithms

不正な設定オプション: pubkeyacceptedalgorithms

Red Hat Linuxサーバーに接続したいのですが、エラーが発生しますBad configuration option: pubkeyacceptedalgorithms

スクリーンショット

スクリーンショット2

puttyを使用してサーバーに接続するとエラーが発生しますNetwork error: connection refused

答え1

設定ファイル内のオプションPubkeyAcceptedKeyTypesは以下のようになります。

PubkeyAcceptedKeyTypes +ssh-dss

等号はオプション=付きのコマンドラインでは使用できます-oが、構成ファイルでは使用できません。

答え2

設定ファイルのエラーを修正すると、sshd が起動し、PuTTY でログインできるようになります。man sshd_config許容される値が表示されますが、現在のワイルドカードのPubkeyAcceptedKeyTypes両方の記号が正しくないように見えます。=*ssh-dss

その設定は次のようになります。

 PubkeyAcceptedKeyTypes ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512

または

 PubkeyAcceptedKeyTypes ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],[email protected]

関連情報