如何在linux下使用ssh命令?为什么出错?

来源:百度知道 编辑:UC知道 时间:2024/05/13 17:10:13
我在linux下使用ssh命令
命令行如下:ssh:localhost.localdomain "(export NODEINFO=3:hostname,hostname,hostname:0; export FMTCP_SESSIONNAME=12345; ~/ns-allinone-2.27/ns-2.27/pdns test.tcl 0 > out.0 2>&1 &)"
错误信息如下:
The authenticity of host 'localhost.localdomain (127.0.0.1)' can't be established.
RSA key fingerprint is 6a:0b:89:66:a2:d5:75:a0:01:12:0a:da:fe:35:18:0e.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
哪位高手能给我指点一下。不盛感激!

使用vi编辑/root/.ssh/know_hosts文件,将里面带有localhost一项的那行全部删除后再试。

通常这是由于本机更改了RSA键值或重新生成该RSA键值造成的。