develog

[mac] macOS 업그레이드 이후에 ssh 연결 안될 때, no matching host key type found. Their offer: ssh-rsa,ssh-dss 본문

카테고리 없음

[mac] macOS 업그레이드 이후에 ssh 연결 안될 때, no matching host key type found. Their offer: ssh-rsa,ssh-dss

냐옴 2023. 4. 5. 10:18

 

Ventura 13.3 업그레이드 후 아래 오류가 나고 ssh 연결이 안됨

$ ssh root@my_server
Unable to negotiate with 192.168.150.3 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

 

/etc/ssh/ssh_config 파일에 아래 내용을 추가한다

$ sudo vi /etc/ssh/ssh_config

## 수정전
Host *
    SendEnv LANG LC_*

## 수정후
Host *
    SendEnv LANG LC_*
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa
Comments