@Asifkhan wrote:
Hi all,
i want to change ssh port to 2222 for extra security
That will probably last for 15 mins or less and then it will be discovered by port scanners & mapped as open SSH port since SSH has a bad habit of advertising itself.
But leaving the "security by obscurity" topic aside, You can do it in a couple of ways:
1/ edit file /etc/services and put in whatever port You want for SSH, then restart sshd. These changes won't survive reboot.
2/ use destination NAT for locally-terminated tcp/22 packets.
HTH
Thx
Alex