티스토리 뷰

(ubuntu)우분투 서버에서 CentOS6(센토스) 서버로 ssh 연결을 시도하는데 아래와 같은 에러가 나옴

 

no matching host key type found. Their offer: ssh-rsa,ssh-dss

 

ubuntu22.04와 CentOS6이 시기적으로 차이가 많이 나다보니 알고리즘 방식이 차단되면서 발생한 문제

 

제일 좋은 해결방법은 낮은 버전 서버를 업데이트 하는것이겠지만.... 현실적으로 어려우니...

 

ubuntu22.04 서버에 ssh 설정을 추가함

 

vim /etc/ssh/sshd_config

 

마지막에 아래 세줄 추가

 

HostkeyAlgorithms ssh-dss,ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1

PubkeyAcceptedKeyTypes +ssh-rsa

 

 

댓글