1 shiyouming91 2018-05-09 05:48:50 +08:00 via iPhone 远程服务器的 config ?可以 scp 下来改好了再 scp 回去 |
![]() | 2 jimmy OP @shiyouming91 不是,本地的 config,然后我把这个文件删除,ssh 也不能用 |
3 anguslg 2018-05-09 10:48:44 +08:00 ssh -v user@ip 看日志 |
![]() | 4 jimmy OP @anguslg 得到这些信息 ``` OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /Users/uss/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to 1xx.6x.xxx.1xx port 22. ``` |
![]() | 6 jimmy OP |
![]() | 10 jimmy OP @anguslg 我本地没有开 sshd,所以这个有报错: ssh: connect to host localhost port 22: Connection refused |
12 hcymk2 2018-05-09 12:05:06 +08:00 没有 Connection established ? |
![]() | 15 manhere 2018-05-09 14:20:00 +08:00 没有公网 IP 的宽带有这个坑 |
19 katsusan 2018-05-09 15:52:55 +08:00 via iPhone 可能和远程主机握手的时候挂了,抓个 22 端口的包看看 |
20 anguslg 2018-05-09 17:17:08 +08:00 清一下 iptables 看看 (死马当做活马医了 |
21 warcraft1236 2018-05-09 17:20:21 +08:00 感觉像是连接远程的服务器的时候挂在那了 |
![]() | 22 liuzhaowei55 2018-05-10 07:50:37 +08:00 via iPhone 找到 know_hosts 文件,对应这个服务器的那一行删掉,然后再试试 |
![]() | 23 liuzhaowei55 2018-05-10 07:51:44 +08:00 via iPhone 这个文件在~/.ssh/know_hosts |
![]() | 24 jimmy OP @liuzhaowei55 不行 |