nmap -p 24888 xxxxxxxx
24888/tcp filtered unknown
iptables opening port
-A INPUT -p tcp -m state --state NEW --dport 24888 -j ACCEPT
ssh -vv -p 24888 user@xxxxxxxxxx
OpenSSH_9.2p1 Debian-2+deb12u4, OpenSSL 3.0.15 3 Sep 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 1: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 3: Applying options for *
debug2: resolve_canonicalize: hostname xxxxxxxx is address
debug1: Connecting to xxxxxxxx [xxxxxxxx] port 24888.
ssh: connect to host xxxxxxxxx port 24888: Connection timed out
my sshd.config
AllowUsers user
AllowAgentForwarding no
AllowTcpForwarding no
ChallengeResponseAuthentication no
ClientAliveCountMax 2
ClientAliveInterval 300
DebianBanner no
GSSAPIAuthentication no
IgnoreRhosts yes
LoginGraceTime 20
MaxAuthTries 3
MaxSessions 1
KerberosAuthentication no
PermitUserEnvironment no
PermitEmptyPasswords no
PasswordAuthentication no
PrintMotd no
Port 24888
Protocol 2
PermitRootLogin no
PermitTunnel no
X11Forwarding no
UsePAM yes
sudo systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; preset: enabled)
Active: active (running) since Tue 2025-01-21 19:47:46 CET; 27min ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 27771 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 27774 (sshd)
Tasks: 1 (limit: 38141)
Memory: 1.4M
CPU: 32ms
CGroup: /system.slice/ssh.service
└─27774 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
Jan 21 19:47:46 localhost systemd[1]: Starting ssh.service - OpenBSD Secure Shell server...
Jan 21 19:47:46 localhost sshd[27774]: Server listening on 0.0.0.0 port 24888.
Jan 21 19:47:46 localhost systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
netstat -tulp
tcp 0 0 0.0.0.0:24888 0.0.0.0:* LISTEN 27774/sshd: /usr/sb