What to do when I ssh to username@stat.ubc.ca (aka be.stat.ubc.ca) I see error: "no matching host key type found. Their offer: ssh-rsa,ssh-dss, etc..."?

Subscribe to email list

Please select the email list(s) to which you wish to subscribe.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA

Enter the characters shown in the image.

User menu

You are here

What to do when I ssh to username@stat.ubc.ca (aka be.stat.ubc.ca) I see error: "no matching host key type found. Their offer: ssh-rsa,ssh-dss, etc..."?

IT
What to do when I ssh to username@stat.ubc.ca (aka be.stat.ubc.ca) I see error: "no matching host key type found. Their offer: ssh-rsa,ssh-dss, etc..."?

Edit the ~/.ssh/config file and include:

host stat.ubc.ca

    KexAlgorithms +diffie-hellman-group1-sha1

    HostKeyAlgorithms +ssh-rsa