您的位置:首页 > 其它

ssh、scp常见问题

2013-11-29 14:14 399 查看

1. UNPROTECTED PRIVATE KEY FILE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
这个问题弄了好久,发现时权限问题。我们需要把id_rsa文件,known_hosts文件和.ssh文件夹的权限更改。

sudo chmod 600 ~/.ssh/id_rsa

sudo chmod 644 ~/.ssh/known_hosts

sudo chmod 755 ~/.ssh/



2.  REMOTE HOST IDENTIFICATION HAS CHANDED

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
e0:05:f2:6f:8d:18:00:ac:50:64:c6:d1:97:2d:c3:20.
Please contact your system administrator.
Add correct host key in /home/xxx/.ssh/known_hosts to get rid of this message.
Offending key in /home/xxx/.ssh/known_hosts:8
RSA host key for 10.18.28.61 has changed and you have requested strict checking.
Host key verification failed.
lost connection
只需要在.ssh/known_hosts文件中将即将登陆的远程主机的信息删除即可

如登陆 ssh bob@192.168.0.100

将本机.ssh/known_host中有192.168.0.100的信息删除即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: