You are not logged in.
Hi all,
I am having some issues with SSH. Just got a new computer, and for some reason I am unable to connect to any SSH server, either on my home network or over the internet.
Every time I try to connect, it fails with the "Host key verification failed" message.
As I said, this is a new computer, so known_hosts is empty. Trying to connect with -vvv verbose logging confirms that no entries are present for the server I am trying to connect to.
I tried changing the encryption algorithm, but still no joy.
Even the most verbose output from SSH gives me nothing to go on to figure out why it isn't working, and I've never had this issue before.
Can anyone help?
Thanks in advance
Last edited by sjg (2014-08-25 16:39:57)
Offline
Did you set /etc/ssh/sshd_config to use only host key verification? If so you might need to generate a new key and temporarily configure ssh to just use password authentication (challengeresponse yes ... I think that's the line in sshd_config). That's the only way I can get my new key to be copied to my other computer.
Offline
Nope - in fact the only change I made to ssh_config was to change the default port to one I use across all my servers.
That's what I can't understand - this is pretty much an "out of the box" ssh install on a new system, something I have done many times before.
Offline
OK, have managed to get it to work by specifyng "StrictHostKeyChecking no" for the first time connecting to each host. If I do this, it adds the host to known_hosts and works fine. Once I have done this, I can then modify the config file to specify "StrictHostKeyChecking yes" or just leave it to the default "ask" behaviour, and connecting to the host still works.
I have tried all 5 of my servers and doing this will allow me to connect, so my problem is at at least partially solved.
Any idea why this should happen though?
Offline
OK, have managed to get it to work by specifyng "StrictHostKeyChecking no" for the first time connecting to each host
and that is ssh_config NOT sshd_config, right ?
No idea, in the default ssh_config all settings are commented
Offline
Please mark this thread as [solved]. midixinga, you might want to start your own thread if you need help with ssh.
Offline
Please mark this thread as [solved]. midixinga, you might want to start your own thread if you need help with ssh.
Beg my pardon, Mr. MoonSwan; but I know the difference between sshd_config and ssh_config !
The ThreadOwner had a ssh-CLIENT problem , you see ?
Last edited by midixinga (2014-08-28 21:25:06)
Offline
I do and thank you for pointing that out.
And it is Miss MoonSwan.
Offline