![]() First make a copy of the SSH configuration file: # cp /etc/ssh/sshd_config /etc/ssh/sshd_config.originalAs root edit the SSH config file: # vi /etc/ssh/sshd_configAround line 12 in the file you'll find the Port number; change this to a different higher port that is not being used, for example: 24332. Save the new configuration. Port 24332Restart the service for the new port to be used: # service sshd restartImportant Note: Check for firewall ports. By restarting the service the current connection will not be disconnected. Make sure you are able to connect to the new port before disconnecting. Enjoy and always think security. |
