On investigation the sshd_config looks correct, but there are no listeners on the configured port. When I stop the service (systemctl stop sshd) I still see port 22 open for ipv6:
Code: Select all
# netstat -tulpn | grep 22
tcp6 0 0 :::22 :::* LISTEN 1/init
udp 0 0 224.0.0.251:5353 0.0.0.0:* 2516/chromium --typ
udp 0 0 224.0.0.251:5353 0.0.0.0:* 2460/chromium --sho
Code: Select all
# systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; preset: enabled)
Active: active (running) since Mon 2023-10-30 15:10:28 CDT; 18s ago
TriggeredBy: ● ssh.socket
Docs: man:sshd(8)
man:sshd_config(5)
Process: 3759 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Process: 3768 ExecReload=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Process: 3769 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Main PID: 3760 (sshd)
Tasks: 1 (limit: 18811)
Memory: 1.4M
CPU: 42ms
CGroup: /system.slice/ssh.service
└─3760 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
Oct 30 15:10:28 arniie-002 systemd[1]: Starting ssh.service - OpenBSD Secure Shell server...
Oct 30 15:10:28 arniie-002 sshd[3760]: Server listening on :: port 22.
Oct 30 15:10:28 arniie-002 systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
Oct 30 15:10:34 arniie-002 systemd[1]: Reloading ssh.service - OpenBSD Secure Shell server...
Oct 30 15:10:34 arniie-002 sshd[3760]: Received SIGHUP; restarting.
Oct 30 15:10:34 arniie-002 systemd[1]: Reloaded ssh.service - OpenBSD Secure Shell server.
Oct 30 15:10:34 arniie-002 sshd[3760]: Server listening on 0.0.0.0 port 16202.
Oct 30 15:10:34 arniie-002 sshd[3760]: Server listening on :: port 16202.