I'm trying to connect to my Ubuntu 14.10 server through ssh but whenever I run
ssh -p [port] [email protected]
It simply gives me no hostkey alg
and drops the connection.
How can I fix it?
I'm trying to connect to my Ubuntu 14.10 server through ssh but whenever I run
ssh -p [port] [email protected]
It simply gives me no hostkey alg
and drops the connection.
How can I fix it?
Running sudo apt-get purge openssh-server
and then running sudo apt-get install openssh-server
should fix your problem
/etc/ssh
but I don't think it will work
Jun 16, 2015 at 20:49
ipsissimus$ echo $(ssh-keyscan -t rsa myhostname.com) >> ~/.ssh/known_hosts # myhostname.com SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 no hostkey alg
echo $(ssh-keyscan -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t rsa myhostname.com) >> ~/.ssh/known_hosts
Jun 16, 2015 at 20:54
hostname.com
. Do you have this available? If not there is no way to get this without at least a small bit of human communication (Talking to people is awful huh?). To better understand this you should look at this pagels ~/.ssh
?ssh_host_dsa_key
,ssh_host_rsa_key
,ssh_host_dsa_key.pub
,ssh_host_rsa_key.pub
files in/etc/ssh/
folder, I believe they are the keys you are talking about. @Grammargeekls ~/.ssh
command gave nothing