Changing your server's SSH port will greatly increase server security. You can follow the steps below.
After logging in via SSH,
nano /etc/ssh/sshd_config
We use the command and open the SSH configuration file.
#Port 22
We find the line that says, delete the # character at the beginning and write the port you want instead of 22. Make sure that the SSH port you will use is not used by any other service and is not closed by the firewall on your server. After making the change and saving the file,
service sshd restart
You can activate the port using the command.
Can't find the information you're looking for?
You have examined the knowledge base in detail, but if you cannot find the information you need,
Create a Support Ticket-
How to Open Ports in Windows?
313 2
-
How to Grant Windows Administrator Privileges?
229 0
-
How to install Webmin on Ubuntu?
882 2
-
Linux SSH Terminal Commands and Explanations
797 3
-
CentOS Stream 10 Update Commands
856 1
-
CentOS Stream 9 Update Commands
1248 2
-
CentOS Stream 8 Update Commands
675 0
-
What is FreeBSD?
857 2
-
Out: 452 4.3.1 Insufficient system storage
768 2
-
Turning Off Automatic Updates in Windows Operating Systems
879 0