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


    tomwhi
    • 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 

     

    2024-05-2409_03_31-mRemoteNG_-_confCons.xml_-_TomNAS(mRemoteNG).png.e40643a805067f0b6d8f38c3cb914c3c.png

     

    /etc/rc.d/rc.sshd restart --->  Restart the SSHD service (reload has the same effect) 

     

    2024-05-2409_04_55-mRemoteNG_-_confCons.xml_-_TomNAS(mRemoteNG).png.15f04076c08be12ef937595a5917beef.png

     

    nano /etc/ssh/sshd_config  --->  Open the config file again to see that my config has been erased. 

     

    2024-05-2409_05_19-mRemoteNG_-_confCons.xml_-_TomNAS(mRemoteNG).png.31a58ffba56a93f1c9b70599bc5c3974.png

     

    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. 

     

    image.png.045a3c4a799719b14cd35ab737086e91.png

     

    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

     

     




    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. 

    image.png.adb175e6dd9d99f5621177e8667f5eb5.png

    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.

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