#开始的时候可以ssh到119.147.10.105
[root@M2_test_192.168.8.93_61618_A tmp]# pwd
/tmp
[root@M2_test_192.168.8.93_61618_A tmp]# ls
mysql.sock ssh-cnVBA23385
[root@M2_test_192.168.8.93_61618_A tmp]# ssh -p61618 119.147.10.105
Last login: Thu Dec 1 13:43:41 2011 from 121.10.118.108
[root@mccq_mm_119.147.160.105_test ~]# exit
logout
Connection to 119.147.10.105 closed.
#把开头为ssh的目录删除,ssh到119.147.160.105会提示错误
[root@M2_test_192.168.8.93_61618_A tmp]# ls
mysql.sock ssh-cnVBA23385
[root@M2_test_192.168.8.93_61618_A tmp]# rm -rf ssh-cnVBA23385
[root@M2_test_192.168.8.93_61618_A tmp]# ssh -p61618 119.147.10.105
Permission denied (publickey,gssapi-with-mic).
[root@M2_test_192.168.8.93_61618_A tmp]#
#解决的办法,把当前的终端断开连接,从新登陆即可
阅读(2861) | 评论(0) | 转发(0) |