리눅스/OS 일반
SSH 접속 에러 : Unable to negotiate with 192.168.10.2 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
개발왕자
2023. 1. 6. 08:46
반응형
ssh 접속시 특정 client 에서만 아래와 같이 일치하는 호스트 키를 찾을 수 없다는 메세지가 출력되는 경우가 있습니다.
# ssh sysdocu@192.168.10.2
Unable to negotiate with 192.168.10.2 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
아래와 같이 옵션을 추가하여 접근하면 잘 됩니다.
# ssh -oHostKeyAlgorithms=+ssh-dss sysdocu@192.168.10.2
접속할 일이 빈번할 경우 설정파일을 이용하여 미리 셋팅해 놓으면 해당 옵션 사용 없이 접근이 가능합니다.
# vi ~/.ssh/config
Host 192.168.10.2 HostKeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa |
# ssh sysdocu@192.168.10.2
반응형