Change default ssh port number on Ubuntu

       

Login as the root user or as a user that can execute sudo commands.

open this file for editing...

vim /etc/ssh/sshd_config

Find the line that reads

Port 22
Change this to an different and an available port number...

Port 8000
Next reload ssh

/etc/init.d/ssh reload
You won't be kicked out of your session. But if you want to open a new connection to your server you need to specify the port number for the connection.

ssh -p8000 root@yourdomain.com

Tagged w/ #22 #port #security #ssh #ubuntulinux

Apps I've Built

PhotoLocationChanger
Easily change the location on your photos and videos
Click here for more info about the app
PhotoDateChanger
Easily change the dates and times on your photos and videos
Click here for more info about the app
VocabReminder
English dictionary with notifications so you won't forget what you're studying!
Click here for more info about the app
VocabQuiz
The app that quizzes and scores you on your vocabulary!
Click here for more info about the app