0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

sshで古いシステムにログインできない時の対処法

Posted at

sshで古いシステムにログインできない時の対処法

原因は、新しいOpenSSHでSHA-1が制限されたため

クライアントがAlmaLinux9の場合

以下ルート権限で

update-crypto-policies --set DEFAULT:SHA1
としたあとで
reboot

参考サイト
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/9/html/security_hardening/proc_re-enabling-sha-1_using-the-system-wide-cryptographic-policies

Ubuntu22.04の場合

以下ルート権限で
/etc/ssh/ssh_config をエディタで開く
Host *
と書かれている定義の最後に
HostKeyAlgorithms=+ssh-rsa
PubkeyAcceptedAlgorithms=+ssh-rsa
を追加することで、SHA-1が有効になる。

参考
https://pyopyopyo.hatenablog.com/entry/2022/11/02/180000

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?