How to Change SSH Port in Centos

Login into your Server Via Putty or any SSH client.

type in following command

vi /etc/ssh/sshd_config

press "i" to edit file

2, Go down to part that says "#Port 22"

remove the "#" from the front of the line

and edit the port you want 

Example

Port 1023

press Esc

type in ":wq" to save the file and exit

type in following command to restart the SSH service.

/etc/init.d/sshd restart

now you can login to your server via new ssh port.
Hjalp dette svar dig?

Relaterede artikler

Adding and viewing IP addresses on CentOS servers

To add newly assigned IP addresses from SSH, follow this procedure: (Please follow the steps...

How to Backup VOS3000 Database and download to your local PC

Login to your server Via SSH ( You can use Putty...

How to Reset Mysql passowrd

Step # 1 : Stop mysql service # /etc/init.d/mysql stopOutput: Stopping MySQL database server:...

Linux OS login software [putty]

Please click the link for download Putty software.  If this is not working then copy and paste...

How to reset root password CentOS

1. Boot the system and when you see the following message "Press any key to enter the menu",press...