How to change SSH port on Ubuntu

These are 4 easy steps that helps you to change SSH port on your Ubuntu box

1. Open the Terminal

2. Edit ssh_config

sudo nano /etc/ssh/ssh_config

3. Change the port

Find the line

Port 22

and change to

Port 2222

4. Ctrl + X to exit nano and answer Y to save the file

5. Restart SSH Server

sudo /etc/init.d/ssh restart

Related posts:

Share
Tags: , , ,

About number.0