Ubuntu 22.04.1로 업데이트한 후 SSH 연결에 실패했습니다.

Ubuntu 22.04.1로 업데이트한 후 SSH 연결에 실패했습니다.

실행 중인 ec2 인스턴스가 있고 ubuntu 20.04.5 LTS를 사용하여 ssh(PEM) 파일에 연결할 수 있었지만 ubuntu 22.04.1 LTS로 업그레이드한 후에는 작동하지 않습니다. 저는 설정이나 다른 어떤 것도 변경하지 않았습니다. 인증 로그에 다음 오류가 표시됩니다.

userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

문제를 해결하는 데 도움을 주세요.

업데이트

이것은 EC2에 있는 알림입니다.

Authenticating with public key "imported-openssh-key"
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.15.0-1019-aws x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Sep  5 13:09:50 UTC 2022

  System load:  0.0               Processes:             102
  Usage of /:   35.7% of 7.57GB   Users logged in:       0
  Memory usage: 15%               IPv4 address for ens5: IP
  Swap usage:   0%


0 updates can be applied immediately.

New release '22.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

답변1

다음을 입력하세요 /etc/ssh/ssh_config.

PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa

이렇게 하면 SSH 클라이언트가 더 이상 사용되지 않는 알고리즘을 사용하여 연결할 수 있습니다.

또한 참조하십시오여기그리고여기.

관련 정보