This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Feature Request - SSH PORT

It would be handy if we could easily change the ssh port that astaro listens on, just like the way we can select the port for webmin.


This thread was automatically locked due to age.
  • You might be able to do it with some NAT trickery.

    I don't know if you'd need to NAT back to the EXT nic, or to the loopback.

    Either way, you might need to create some new pf rules like:
    any ext -> ssh allow
    or
    any loopback -> ssh allow


    IIRC, that is how the transparent proxy is done.


    Barry
  • It's dead easy to change the port that sshd listens on. 

    ssh into the box and edit /etc/ssh/sshd_config

    Change the line that has "Port 22" to "Port nnnn", where "nnnn" is the port you'd like sshd to listen on. 

    Don't forget to add packetfilter rules appropriate to the new port you just had sshd listen on. 

    Send a HUP signal to the PID of the parent sshd, or just reboot.

    Done. [:)]
  • Like it was said, it´s not that hard with NAT.

    All -> external_interface /  None  internal_interface / ssh

    techno.kid