- CheckMates
- :
- Products
- :
- Quantum
- :
- Security Gateways
- :
- Re: change ssh port on R80.40 and higher
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
change ssh port on R80.40 and higher
CheckMates,
changing the ssh port via /etc/ssh/sshd_config is broken since R80.40. You can change the port, restart sshd service everything will be fine. But after a reboot the changed entry is removed from sshd_config.
Is there a new clish command available for changing the ssh port or do we have to made the sshd_config readonly after the change ?
Wolfgang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Starting from R80.40 Jumbo Hotfix Take 83, instead of editing/backing up /etc/ssh/sshd_config, you should edit/backup /etc/ssh/templates/sshd_config.templ and run /bin/sshd_template_xlate < /config/active
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SK was deleted and did not survive jumbo install i.e. on R81.10.
Is there actually a workig process to change ssh port permanently?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also miss a permanent solution for this... In some cases, one may lose connection...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Checking the R82 EA, it appears the situation is the same (you need to edit the template file and it may not survive a JHF/upgrade).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do what @PhoneBoy says. You need to write your changes to the template and they will be preserved/re-generated at each startup. I've made a few custom changes myself this way and it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I have been using that, but that template is overwritten by jumbo hotfixes. So it's not permanent in that way 😉
