Error message: OpenSSH failed to add the hosts to the list of known hosts
Environment:
Workstation: Windows 7 x64 Authenticated with domain server
OpenSSH: OpenSSH for Windows v3.8.1p1-1 x64
This issue has been going on for a while in my machine, what is boring is that every time I try to log on to any of my Linux servers the same message appears, asking for confirmation and then showing the error, which prevents me from performing batch tasks and scripts from my workstation against the Linux servers.
The way to solve this basically has to do with an environment variable that has to be declared, OpenSSH doesn't know the value of $HOME, which is equivalent to the %USERPROFILE% windows variable. So it has to be declred.
Set a Windows User environment variable named HOME that points to the %USERPROFILE%:
- Open the Control Panel > System and Security > System
- Click on the Advanced System Settings
- Click the Environment Variables
- In the User variables box click on the "New" Button
- Declare a variable named HOME and set its value to %USERPROFILE%
- Accept and click OK
C:\Users\HMadrid\.ssh>ssh oracle@myHost
The authenticity of host 'myHost (192.168.XX.XX)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'myHost,192.168.xx.xx' (RSA) to the list of known hosts.
oracle@MyHost's password:
Last login: Mon Sep 16 17:33:58 2013 from 192.168.xx.xx
[oracle@stwrac1 ~]$ exit
logout
Connection to myHost closed.
No comments:
Post a Comment