我无法从特定机器 ssh,无论是从我的 Ubuntu 12.04 安装还是我的 Windows Vista 安装(使用腻子)。我正在尝试通过 ssh 连接到我有帐户的远程机器,但我不断收到“连接被拒绝”错误。但是,从我办公室中使用相同设置的另一台计算机,我可以正常连接
这是输出dig sun.chpc.ac.za:
; <<>> DiG 9.8.1-P1 <<>> sun.chpc.ac.za
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55409
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;sun.chpc.ac.za. IN A
;; ANSWER SECTION:
sun.chpc.ac.za. 2598 IN A 196.24.44.62
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Oct 30 21:40:35 2012
;; MSG SIZE rcvd: 48
"nslookup sun.chpc.ac.za" Server: 127.0.0.1 Address: 127.0.0.1#53
Non-authoritative answer: Name: sun.chpc.ac.za Address: 196.24.44.62
Run Code Online (Sandbox Code Playgroud)
我停止了 Firewire 并尝试 ssh,但它仍然说“连接被拒绝”
当我运行时nmap sun.chpc.ac.za:
Starting Nmap 5.21 ( http://nmap.org ) at 2012-10-30 22:24 SAST
Nmap scan report for sun.chpc.ac.za (196.24.44.62)
Host is up (0.0044s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
1863/tcp filtered msnp
2000/tcp filtered cisco-sccp
Nmap done: 1 IP address (1 host up) scanned in 2.81 seconds
Run Code Online (Sandbox Code Playgroud)
这是命令的输出: ssh -vvv user@sun.chpc.ac.za
OpenSSH_5.9p1 Debian-5ubuntu1,
OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to sun.chpc.ac.za [196.24.44.62] port 22.
debug1: connect to address 196.24.44.62 port 22: Connection refused
ssh: connect to host sun.chpc.ac.za port 22: Connection refused
Run Code Online (Sandbox Code Playgroud)
这是ipconfig可以连接的 Windows 计算机的输出:
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::f988:68a0:c432:d37c%11
IPv4 Address. . . . . . . . . . . : 172.20.15.51
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.20.15.254
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fb:3403:122f:53eb:f0cc
Link-local IPv6 Address . . . . . : fe80::3403:122f:53eb:f0cc%12
Default Gateway . . . . . . . . . : ::
Tunnel adapter isatap.{C3E90CF9-5991-4463-AC91-A1497807E5D6}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Run Code Online (Sandbox Code Playgroud)
使用相同的电缆,这是ifconfig我的 Linux 笔记本电脑无法连接的输出:
eth0 Link encap:Ethernet HWaddr 00:14:0b:3f:b9:4c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:135737 errors:0 dropped:0 overruns:0 frame:0
TX packets:111352 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:155954649 (155.9 MB) TX bytes:10990034 (10.9 MB)
Interrupt:17
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:25939 errors:0 dropped:0 overruns:0 frame:0
TX packets:25939 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2034277 (2.0 MB) TX bytes:2034277 (2.0 MB)
wlan0 Link encap:Ethernet HWaddr 00:13:e8:f8:0e:af
inet addr:172.1.2.33 Bcast:172.1.255.255 Mask:255.255.0.0
inet6 addr: fe80::213:e8ff:fef8:eaf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1885246 errors:0 dropped:0 overruns:0 frame:0
TX packets:196008 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:430638332 (430.6 MB) TX bytes:36583180 (36.5 MB)
Run Code Online (Sandbox Code Playgroud)
的输出tcptraceroute sun.chpc.ac.za 22是:
Selected device eth0, address 172.20.15.35, port 51859 for outgoing packets
Tracing the path to sun.chpc.ac.za (196.24.44.62) on TCP port 22 (ssh), 30 hops max
1 172.20.15.254 0.494 ms 0.431 ms 0.354 ms
2 * * *
3 196.24.44.62 [closed] 0.323 ms 0.326 ms 0.312 ms
Run Code Online (Sandbox Code Playgroud)
目标机器上的端口已关闭。您无法连接。
检查目标机器(或它前面的网络)上的防火墙设置,并从您的笔记本电脑使用的 IP 打开所需的端口。
| 归档时间: |
|
| 查看次数: |
1466 次 |
| 最近记录: |