Здравствуйте!
Обнаружил на своей Ubuntu проблему доступа по SSH.
Сам ПК подключен в роутер, в роутере пробит порт к ПК (TCP 22 -> 2002).
Вот, что говорит TCPdump при попытке подключения из-за роутера:
09:46:15.982842 IP x.53433 > x.2002: Flags [S], seq 3212796261, win 14600, options [mss 1436,sackOK,TS val 156448240 ecr 0,nop,wscale 6], length 0
Вот что гооврит клиент:
[rpm@mockbuild rpm]$ ssh x -p2002
ssh: connect to host x port 2002: Connection timed out
С локальной подсети подключение по SSH устанавливается. В локалке нет дубликата MAC или IP.
Port 2002
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key2
HostKey /etc/ssh/ssh_host_dsa_key2
HostKey /etc/ssh/ssh_host_ecdsa_key2
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 2048
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin without-password
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UseDNS no
UsePAM yes
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
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
ufw снесен, SSH был переустановлен, троекратные ребут не исправил ситуацию. IP роутера не блокируется (hosts.deny и пр). Где еще может быть блокировка?
PS: с таким сталкиваюсь в первые.