How to change SSH port number
Using VPS with Ubuntu latest and new to linux command. Its for hosting a website.
Tried via sudo nano /etc/ssh/sshd_config does not seem to work.
Tried ports like 2864 ,31457 but nope :( The default port just does NOT change.
Video: https://youtu.be/STtg62zx73k In the video tho u can see I may have used 65564 which is not valid but this was like the 51th attempt. I know it should be less than less than 65535. The default 22 won't just change.
Also, when I went to change the port number it was written port and listenaddress is not used when sshd is socket activated. screenshot: https://imgur.com/b2t1ASm
Anyone can help with the proper command?