develog

[RockyLinux9] Unable to negotiate with 192.168.12.34 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss 본문

카테고리 없음

[RockyLinux9] Unable to negotiate with 192.168.12.34 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

냐옴 2024. 2. 7. 13:46

 

ssh 접속시 아래 오류가 발생

Unable to negotiate with 192.168.12.34 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

 

 

/etc/ssh/ssh_config 파일을 수정한다

$ vi /etc/ssh/ssh_config

Host *
    #Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
    #MACs hmac-md5,hmac-sha1,umac-64@openssh.com
    HostkeyAlgorithms ssh-rsa,ssh-dss
    PubkeyAcceptedAlgorithms ssh-rsa,ssh-dss
    KexAlgorithms +diffie-hellman-group1-sha1
    RequiredRSASize 1024

 

Comments