Knowledgebase: NAS - English
How to fix SSH connection error: Couldn't agree a host key algorithm
Posted by Daniel Orme on 31 August 2016 11:55 PM

If you got the following error when connecting to your NAS by SSH: 

"Couldn't agree a host key algorithm"

You can fix it by connecting to your NAS by telnet and issue below commands:

# chmod 0600 /etc/ssh/ssh_host_rsa_key
# chmod 0600 /etc/ssh/ssh_host_dsa_key
# chmod 0600 /etc/config/ssh/ssh_host_rsa_key
# chmod 0600 /etc/config/ssh/ssh_host_dsa_key
# chmod 0644 /etc/ssh/*.pub
# chmod 0644 /etc/config/ssh/*.pub

(34 vote(s))
Helpful
Not helpful

Comments (0)