I am new to linux server management and want to move my OpenSSH ufw profile to listen on port 4444 instead of port 22 when I enable the firewall.
So I am acomplishing this by updating the profile at
/etc/ufw/applications.d/openssh-server
to
[OpenSSH]
title=Secure shell server, an rshd replacement
description=OpenSSH is a free implementation of the Secure Shell protocol.
ports=4444/tcp
Is it okay to just do this manually? I'm afraid I might accidentally initiate some sort of firewall update in the future and it might change it back to port 22 originally, which will lock me out (as I'm also setting the ssh config to 4444).
Also is it normal practice to edit these standard profile files or just create a new profile entirely for the firewall?