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的信息删除即可。
相关文章推荐
- 基于Bootstrap+jQuery+Thinkphp+Mongodb实战开发社区交流网站平台
- awk && sed
- 使用Storyboard实现复杂界面
- 2013-11-29
- NistNet 网络损伤仪模拟工具
- typedef函数指针用法
- paramiko SSH 交互
- 开源性能测试工具 - Apache ab 介绍
- MyEclipse的一些配置
- Daily scrum[2013.11.28]
- C++.Experiment 4.Operator overloading(& date plus days)
- 复制powerpoint2007自定义形状粘贴到word2007里变成图片,怎么解决?
- nginx进程模型
- 通过chrome查看一个http请求的发起者。
- wxwidgets编译及环境配置
- linux 多线程 pthread_cond_wait(&cond,&mutex)理解
- ios程序编译链接参数 all_load 的 ld duplicate symbol _main 的 bug及修复
- 802.16, 802.1X,WPA,WEP,EAP,Hotspot 2.0
- std::map中erase的正确用法
- Daily scrum[2013.11.27]