logo
down
shadow

SSH "Failed to add the host to the list of known hosts" Openshift


SSH "Failed to add the host to the list of known hosts" Openshift

By : Orit
Date : November 22 2020, 10:40 AM
Any of those help One can pass options to SSH on command line, like this:
ssh -o UserKnownHostsFile=/tmp/known_host_file -p 21098 -i $OPENSHIFT_DATA_DIR/.ssh/host_key user@domain.com
code :


Share : facebook icon twitter icon
Failed to add the host to the list of know hosts

Failed to add the host to the list of know hosts


By : doudou gu
Date : March 29 2020, 07:55 AM
may help you . Shouldn't known_hosts be a flat file, not a directory?
If that's not the problem, then this page on Github might be of some help. Try using SSH with the -v or -vv flag to see verbose error messages. It might give you a better idea of what's failing.
"Failed to add the host to the list of known hosts" Windows prompt

"Failed to add the host to the list of known hosts" Windows prompt


By : Ganesh Naral
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , First of all, tested with msysgit 1.9.2, when one selects to make just git command available from cmd.exe during installation (where other choices are, make it avaiable only under git bash, or make all MSYS commands available under cmd.exe), git clone works from cmd.exe prompt.
The ssh client uses HOME environment variable to find .ssh/ directory, but git should take care of all the ugly details. You should not have HOME defined in your normal Windows environment, so if echo %HOME% in cmd.exe prompt prints a path, edit the OS environment variables and remove HOME.
code :
echo C:\Users\Username
echo 'C:\Users\Username'
Not able to add a host to the list of known hosts on OpenShift (permission denied)

Not able to add a host to the list of known hosts on OpenShift (permission denied)


By : user2866002
Date : March 29 2020, 07:55 AM
I wish this help you As far as I learned a non-super-user cannot modify the known-hosts in an Openshift instance. I got away using a custom folder, but I guess not all technologies would allow it. The RedHat support engineers told me that cross-gear SSH communication is not recommended and should not work(!). Fortunately it does, at least sometimes.
Failed to add the host to the list of known hosts, how to debug

Failed to add the host to the list of known hosts, how to debug


By : muxin
Date : March 29 2020, 07:55 AM
wish help you to fix your issue Try to ssh using -v. The output is: , I did not have the permission for some ssh related files.
code :
ls -al /home/ccc/.ssh/known_hosts
-rw------- 1 root root 7770 Jan 20 16:14 /home/ccc/.ssh/known_hosts
ccc@es-chen:~$ sudo chown -R ccc:ccc .ssh
ccc@es-chen:~$ ssh cccadmin@ccchost -A -X 
The authenticity of host 'ccchost (myip)' can't be established.
ECDSA key fingerprint is 17:d5:07:c8...............:54:5e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ccchost,myip' (ECDSA) to the list of known host
Why does my entry in the "Your Virtual Hosts" submenu not contain the full name of the host?

Why does my entry in the "Your Virtual Hosts" submenu not contain the full name of the host?


By : varun
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further The problem resolved itself after a clean reboot. Restarting WAMP was not sufficient but restarting the operating system fixed it.
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org