본문 바로가기

aws 헛다리

aws 우분투서버2024lts/ssh접속오류 No supported authentication methods available (server sent: publickey)

728x90

 

 

 

aws 우분투서버2024lts/ssh접속오류 No supported authentication methods available (server sent: publickey)


에러 상황

1. aws 에 우분투 서버 설치

2. 우분투 설치중 keypair 생성 (.pem)

3. 윈도우11 에서 ssh툴( mobaxterm ) 사용하여 ssh접속(키페어 적용)

접속안됨.

에러 메세지 : No supported authentication methods available (server sent: publickey)


점검 및 헛다리 과정

1.보안그룹에서 22포트 오픈 확인

2. 우분투 기본방화벽 비활성화 확인

2 ~ㅅ1 ~ 8 대체 뭐야


ssh로그 확인

sudo tail -f /var/log/auth.log

sshd[2817]: userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

sshd[2817]: userauth_pubkey: PubkeyAcceptedAlgorithms에 없는 서명 알고리즘 ssh-rsa [preauth]


vi /etc/ssh/sshd_config

알고리즘 추가 
PubkeyAcceptedAlgorithms +ssh-rsa
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

 

sudo systemctl restart ssh


2 ~ㅅ1 ~ 8 centos 만세다  이제 된다. 

 

 

 

 

728x90