ssh service address

Started by pavela, July 07, 2025, 09:04:50 AM

Previous topic - Next topic
If we have ssh service assigned to an interface, changing the address of this interface does not change the address in ssh (netstat -an | grep 22)
You need to remove and re-assign the interface to listen over ssh (System/Settings/Administration/Secure Shell Listen Interfaces).

Have you tried restarting the service?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

July 07, 2025, 09:08:57 AM #2 Last Edit: July 07, 2025, 01:20:42 PM by meyergru
You could also have restarted the SSH service instead. That is one of the reasons why one should not bind services to specific interfaces, but instead limit access via firewall rules. The implicit bind to 0.0.0.0 (or ::) will not have such problems.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+

Thanks guys.
Restarting openssh of course works. And yes, it's better to listen on all interfaces and limit it on firewall.