ssh
1. ssh connection refused
http://blog.csdn.net/jayxujia123/article/details/34125791
解决办法:
sudo apt-get install openssh-server
[No need] sudo /etc/init.d/ssh start
$ ps -e | grep ssh
2. REMOTE HOST IDENTIFICATION HAS CHANGED
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
19:1f:6f:dd:24:28:06:7d:5c:9e:94:f1:69:1f:b6:5f.
Please contact your system administrator.
Add correct host key in /home/xy/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/xy/.ssh/known_hosts:44
remove with: ssh-keygen -f "/home/xy/.ssh/known_hosts" -R 10.239.82.113
ECDSA host key for 10.239.82.113 has changed and you have requested strict checking.
Host key verification failed.
可使用以下指令查看:
ssh-keygen -l -f ~/.ssh/known_hosts
由于服务器重新安装系统了,所以会出现以上错误。
解决办法1:
vi /root/.ssh/known_hosts
找到要连接的主机的ip,把它的那行所有信息删除(就是一行)
解决办法2:
ssh-keygen -R 服务器端的ip地址
会出现以下提示:
# Host 192.168.3.10 found: line 1 type RSA
/用户home目录/.ssh/known_hosts updated.
Original contents retained as /用户home目录/.ssh/known_hosts.old
重新连线,出现以下提示:
The authenticity of host '192.168.3.10 (192.168.3.10)' can't be established.
RSA key fingerprint is da:f7:3e:ba:f7:00:e6:44:76:f2:58:6e:48:****.
Are you sure you want to continue connecting (yes/no)?
输入yes确认即可连线成功。
ssh-keygen -f "<path>/.ssh/known_hosts" -R [git.***.com]:port