本文介绍了SSH"无法将主机添加到已知主机&QUOT列表; Openshift的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图用 SSH
命令连接到另一个远程主机。
I tried to use ssh
command to connect to another remote host.
ssh -p 21098 -i $OPENSHIFT_DATA_DIR/.ssh/host_key [email protected]
The authenticity of host '[domain.com]:21098 ([124.219.148.93]:21098)' can't be established.
RSA key fingerprint is 12:15:79:55:c6:2a:66:1e:82:94:da:19:e1:ca:21:3d.
Are you sure you want to continue connecting (yes/no)?yes
Failed to add the host to the list of known hosts (/var/lib/openshift/541b685c5973cae7bbf006f4/.ssh/known_hosts).
Connection closed by 124.219.148.93
我想我们没有获得。那么如何解决这个问题呢?
I suppose we do not have access to home/.ssh
. So how to solve this problem?
推荐答案
我们可以将选项传递SSH命令行上,像这样的:
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 [email protected]
下面是相关的答案:ssh使用其他的known_hosts超过$ HOME /的.ssh / known_hosts里面
这篇关于SSH"无法将主机添加到已知主机&QUOT列表; Openshift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!