我完全是 Linux 新手,尝试通过 SSH 从 OS X 远程登录 Debian。
在服务器上安装 OpenSSH 后,ssh -vvv ***.***.***.165
给出以下输出:
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ***.***.***.165 [***.***.***.165] port 22.
ssh: connect to host address port 22: Operation timed out
然后我尝试ping address
给予:
PING ***.***.***.165 (***.***.***.165): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
.
.
.
--- address ping statistics ---
134 packets transmitted, 0 packets received, 100.0% packet loss
/sbin/iptables -L
我已经检查了服务器上的输出:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
任何评论都将受到赞赏。
编辑:
/sbin/ifconfig
输出:
eth0 Link encap:Ethernet HWaddr 38:2c:4a:71:bb:8f
inet addr:***.***.***.165 Bcast:***.***.***.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fb600000-fb620000
eth1 Link encap:Ethernet HWaddr 38:2c:4a:71:b7:87
inet addr:***.***.***.165 Bcast:***.***.***.255 Mask:255.255.255.0
inet6 addr: fe80::3a2c:4aff:fe71:b787/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2437561 errors:0 dropped:41826 overruns:0 frame:0
TX packets:112569 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:309632508 (295.2 MiB) TX bytes:44212568 (42.1 MiB)
Interrupt:20 Memory:fb100000-fb120000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:376998 errors:0 dropped:0 overruns:0 frame:0
TX packets:376998 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:114274728 (108.9 MiB) TX bytes:114274728 (108.9 MiB)
抱歉,我必须屏蔽 IP,并且***.***.***
上述内容代表同一件事。
更新:
将本地计算机连接到其他 Wifi 后,我成功进行了 SSH。有许多 PC(包括服务器)通过同一路由器(有线或无线)连接到互联网。我的本地计算机是通过无线连接的。一旦我将 Wifi 切换到另一个,SSH 就可以正常工作。
如果我想恢复原来的Wifi,该如何解决问题?