|Posted on Thursday, August 04, 2016 - 11:42 am: |
I have been unable to get my WebMO server to connect to my MOPAC server. When I have tried to add it, I keep getting the error, "host key verification failed". I was able to ssh with my public key as the webmo user via the command line with no problems.
Well, I finally found a solution, and am posting it here in case anyone else has this problem. Also, if there is a better solution, I would be happy to hear about it.
From this article:
I logged in to my WebMO server as the webmo user, and used
ssh -o StrictHostKeyChecking=no email@example.com uptime
and I was able to add the server and run jobs on it.
I have not yet looked at the specifics for this command to see if it is safe. I'll report back if I find out that there are any major security issues here. Also, if someone else has a better or alternate solution, I would be happy to hear it.
Post Number: 514
|Posted on Thursday, August 04, 2016 - 12:18 pm: |
Normally the first time you SSH the hostkey is stored in 'known_hosts'. This is why you most first login at least once from the command line (as you did).
But also note that the known hosts are differentiated very strictly. So always use the FULLY QUALIFIED domain name, because 'mopac-server' and 'mopac-server.example.com' are considered DIFFERENT servers in known_hosts. This is almost certainly the cause fo the problem.
|Posted on Thursday, August 04, 2016 - 2:56 pm: |
Thank you for the reply.
I believe that that was the problem. I had used the hostname to connect via command line, whereas the WebMO interface asked for the fully qualified domain name. If I turn off StrictHostKeyChecking, and use the hostname in the Add Server setting, it connects successfully.
Thanks for your help!