How to change ssh port with csf?

Maxoq

Well-known member
Registered
Joined
Feb 25, 2015
Messages
520
Points
28
I installed CSF on my VPS and I want to change ssh port with csf? how can I do that? any guide?
 

24x7CSM

Well-known member
Registered
Joined
Sep 27, 2016
Messages
263
Points
28
login to your server with root >> edit /etc/ssh/sshd_config with your favorite editor either nano or vi >> find the line port in the config file >> you will the default port set there 22 >> change that number to your desire port number e.g.1022 >> save the file and restart the sshd service .

Once thats done edit the /etc/csf/csf.conf file and in incoming ports section add the 1022 , reload the csf or restart the csf service.
 
Older Threads
Recommended Threads
Replies
2
Views
2,396
Replies
0
Views
1,161
Replies
6
Views
3,738
Replies
4
Views
3,974

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top