How to change ssh port with csf?

Maxoq

Well-known member
Registered
Joined
Feb 25, 2015
Messages
535
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
Latest Threads
Replies
1
Views
672
Replies
3
Views
655
Replies
1
Views
564
Replies
2
Views
1,166
Replies
1
Views
775
Recommended Threads
Replies
0
Views
10,806
Replies
26
Views
12,822
Replies
15
Views
11,351
Replies
0
Views
2,401
Replies
7
Views
6,282

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