- Minor
Every time I reboot my unraid server, or even restart the service now - the ListenAddress in ssd_config goes back to the BR0 address / LAN address but I want it to be a custom address or 0.0.0.0.
nano /etc/ssh/sshd_config ---> Add the new network
nano /boot/config/ssh/sshd_config ---> Add the new network
/etc/rc.d/rc.sshd restart ---> Restart the SSHD service (reload has the same effect)
nano /etc/ssh/sshd_config ---> Open the config file again to see that my config has been erased.
I have inspected the /etc/rc.d/rc.sshd script which contains this comment (no date/timestamp)
Quote# bergware - added interface bind functionality
Looking at line 18 and 21 the ListenAddress is removed and re-added using the "bind" array however I cannot tell where that bind array is being populated from.
I have previously been able to have a custom SSH ListenAddress but I don't know if updating from 6.12.8 to 6.12.10 has changed this behaviour, or if I'm missing something else.
If I manually runthe following command in the script to restart the service then I can get both listen addresses on both interfaces.
Quote
SSHD="/usr/sbin/sshd"
$SSHD 2>/dev/null