Tag: ssh

SSH returns: no matching host key type found. Their offer: ssh-dss

When you do an SSH or SCP to a server, you may find the below error message.

“SSH returns: no macthing key type found. Their offer ssh-rsa,ssh-dss”.

You can add the -oHostKeyAlgorithms option to access the server. For example.

ssh -oHostKeyAlgorithms=+ssh-dss admin@yogindar.com

 

Source: SSH returns: no matching host key type found. Their offer: ssh-dss – Ask Ubuntu

How to do ssh autologin

I got a requirement in my project to enable autologin for some build scripts to get some information from remote machine through autologin. My colleagues has given steps to create identiry and rsa files and copy them to the remote machine and rename as authorize files. But that steps didnt work. Browsing the internet I got a good reference to built-in script which Linux had. These are the 2 simple steps to enable autologin.

The machine from which you want to login just type the following commands.

ssh-keygen -q -t rsa -N ” -f ~/.ssh/id_rsa

ssh-copy-id -i ~/.ssh/id_rsa yogindar@yogindar.com

this will ask for password once. Enter the same.

Now try ssh  yogindar@yogindar.com

you will find it wont ask any password.