Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Arturxr
Explorer
Jump to solution

replacing the SSH connection port

Good afternoon, we want to replace the SSH port from the standard 22 to another one. We perform the following actions:

# sed -i 's,^#Port 22$,Port 2200,' /etc/ssh/sshd_config

# service sshd restart

Port 2200 is connected, and everything is working, but only until the Check Point is restarted. As soon as we restart the Check Point, the changes in the /etc/ssh/sshd_config file return to their original state. Tell me, have you changed the SSH port? Was it possible to solve this problem?

0 Kudos
2 Solutions

Accepted Solutions
Lesley
MVP Gold
MVP Gold

edit/backup /etc/ssh/templates/sshd_config.templ and run /bin/sshd_template_xlate < /config/active

but every Jumbo update / upgrade change will be reset. 

-------
If you like this post please give a thumbs up(kudo)! 🙂

View solution in original post

2 Replies
the_rock
MVP Gold
MVP Gold
0 Kudos
Lesley
MVP Gold
MVP Gold

edit/backup /etc/ssh/templates/sshd_config.templ and run /bin/sshd_template_xlate < /config/active

but every Jumbo update / upgrade change will be reset. 

-------
If you like this post please give a thumbs up(kudo)! 🙂

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events