how to change your ssh port
hey guys hope this helps you alot!! to change your ssh port you need to do this below
nano /etc/ssh/sshd_config
go to where it reads port
then you need to change that port to what ever port you like to change it to
so say it said 22, you change 22 to what ever port you like to change it to lik 56482 or what ever.
the press control x
press y
the enter and your all good there but then you also have to run the commands
more info on it coming
1 Reply
Thanks for the tip! I just worked through some of this myself and wanted to point out a couple of things:
The command to edit the sshd_config file should have sudo appended to it if you're not running these commands from the root user.
Once you change that file, be sure to restart your ssh daemon to make the changes take effect. You can do this by running:
systemctl restart sshd
To confirm that this has worked, try logging out and then back into your Linode. If you end up getting locked out, you can use LISH (LInode SHell) to get back into your Linode and make any changes needed.