scp 在 in->out 处挂起,在 out->in 处正常工作

scp 在 in->out 处挂起,在 out->in 处正常工作

这台故障机器名叫gpu17

  • ssh 正常运行
  • scp 在另一台机器上下载文件,或者上传文件正常
  • ping 丢包率 100%
  • 已重启,没有变化
  • 防火墙似乎没有阻止任何东西
$ sudo 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
  • 似乎没有端口被阻止
$ nmap -P0  88.99.253.27
Starting Nmap 7.60 ( https://nmap.org ) at 2021-02-03 09:46 CET
Nmap scan report for gpu17 (88.99.253.27)
Host is up (0.00053s latency).
Not shown: 999 filtered ports
PORT   STATE SERVICE
22/tcp open  ssh

$ sudo nmap -P0 -sU 88.99.253.27
Starting Nmap 7.60 ( https://nmap.org ) at 2021-02-03 10:01 CET
Nmap scan report for gpu17 (88.99.253.27)
Host is up.
All 1000 scanned ports on gpu17 (88.99.253.27) are open|filtered

Nmap done: 1 IP address (1 host up) scanned in 201.37 seconds
  • scp 跑进来gpu17总是超时
$ scp -v rabo2.txt gpu10:/home/dario/rabo4.txt
Executing: program /usr/bin/ssh host gpu10, user (unspecified), command scp -v -t /home/dario/rabo4.txt
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to gpu10 [46.4.90.217] port 22.
debug1: connect to address 46.4.90.217 port 22: Connection timed out
ssh: connect to host gpu10 port 22: Connection timed out
lost connection

$ scp -v gpu10:/home/dario/rabo4.txt .
Executing: program /usr/bin/ssh host gpu10, user (unspecified), command scp -v -f /home/dario/rabo4.txt
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to gpu10 [46.4.90.217] port 22.
debug1: connect to address 46.4.90.217 port 22: Connection timed out
ssh: connect to host gpu10 port 22: Connection timed out
  • sudo tail -f /var/log/syslog这两个命令没有任何新内容

我还应该尝试什么来诊断或修复此问题?

相关内容