iDev
ssh 접속시 no matching key 문제 해결
KraZYeom
2017. 1. 29. 17:16
반응형
OpenSSH 7.0 이상에서 ssh를 사용해서 원격에 접속을 하려할 때 몇 몇 알고리듬은 보안상의 이유로 기본적으로 비활성화 되어 있다.
NAS와 무선 인터넷 공유기의 ssh를 접속을 하려 하는데 아래와 같이 에러가 나면서 원격 접속이 되질 않는다. -o 옵션을 줘서 알고리듬을 추가 해도 된다. 또는 ~/.ssh/config
에 host 정보를 추가 해주면 자동으로 적용이 된다.
no matching host key type found. Their offer: ssh-dss
My Cloud NAS 접속시 문제
krazyeom@MBP:~$ ssh root@192.168.219.18
Unable to negotiate with 192.168.219.18 port 22: no matching host key type found. Their offer: ssh-dss
ssh -oHostKeyAlgorithms=+ssh-dss root@192.168.219.18
~/.ssh/config
Host 192.168.219.18
HosKeyAlgorithms +ssh-dss
no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
ASUS 무선 공유기 접속 문제
krazyeom@MBP:~$ ssh admin@192.168.219.5
Unable to negotiate with 192.168.219.5 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 admin@192.168.219.5
~/.ssh/config
Host 192.168.219.5
KexAlgorithms +diffie-hellman-group1-sha1

마음에 드셨으면 아래 추천 버튼을 꾹 눌러주세요. :]
반응형