
ショコラ
sshでログインしようとしたところ「no kex alg」と表示された(検証中)
sshd_config 修正でキメマス。

もっさん先輩
KexAlgorithms +diffie-hellman-group14-sha1
HostkeyAlgorithms +ssh-rsa
手順
- TeraTerm が使えないので、代わりに PowerShell の ssh でサーバーに接続します。
ssh -i {プライベートキー} mossan@answorz.com
- ルートになります。
sudo su -
- /etc/ssh/sshd_config を修正します。
{
echo "KexAlgorithms +diffie-hellman-group14-sha1"
echo "HostkeyAlgorithms +ssh-rsa"
} >> /etc/ssh/sshd_config
- sshd を再起動します。
systemctl restart sshd
シチュエーション
ssh でログインしようとしたら、「no kex alg」が表示されてログインできなかった。
no kex alg