Why does not ssh port change?


I am trying to change the ssh port, i did change the port in sshd_config, and i did all the steps in coincashew hardening server guide.
when i type command: sudo ufw status
this shows that the ssh port 22 is still allowed & i cant see my custom ssh port. seams like i did something wrong:

Status: active

 To                         Action      From
 --                         ------      ----

[ 1] 22/tcp ALLOW IN Anywhere
[ 2] 6000/tcp ALLOW IN Anywhere
[ 3] 22/tcp (v6) ALLOW IN Anywhere (v6)
[ 4] 6000/tcp (v6) ALLOW IN Anywhere (v6)

it is my bp-server
i have bare metal servers.

best regards,


1 Like
sudo ufw allow proto tcp from any to any port xxx
sudo ufw reload

where xxx is the desired port

1 Like