gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 01:42:29 34 4
gpt4 key购买 nike

我尝试使用 ssh命令连接到另一个远程主机。

ssh -p 21098 -i $OPENSHIFT_DATA_DIR/.ssh/host_key user@domain.com   

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

我想我们无权访问 home/.ssh .那么如何解决这个问题呢?

最佳答案

可以在命令行上将选项传递给 SSH,如下所示:
ssh -o UserKnownHostsFile=/tmp/known_host_file -p 21098 -i $OPENSHIFT_DATA_DIR/.ssh/host_key user@domain.com
这是相关的答案:ssh use known_hosts other than $HOME/.ssh/known_hosts

关于authentication - SSH "Failed to add the host to the list of known hosts"Openshift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27714857/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com