Jump to content
  • [6.12.10] Custom SSH ListenAddress removed after service restart

    • 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 


    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)



    # 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. 





    $SSHD 2>/dev/null



    User Feedback

    Recommended Comments

    I added the following to /etc/rc.d/rc.sshd until I hear / see any resolution.  I didn't want to have to modify it but hopefully there will be some resolution appear in the future. It's not at all dynamic - I'm not great at Shell scripting. 


    After a "/etc/rc.d/rc.sshd restart" I was up and running again and both IP addresses appeared as ListenAddresses. 


    Link to comment

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

  • Status Definitions


    Open = Under consideration.


    Solved = The issue has been resolved.


    Solved version = The issue has been resolved in the indicated release version.


    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.


    Retest = Please retest in latest release.

    Priority Definitions


    Minor = Something not working correctly.


    Urgent = Server crash, data loss, or other showstopper.


    Annoyance = Doesn't affect functionality but should be fixed.


    Other = Announcement or other non-issue.

  • Create New...