How to change the SSH Port

Navigate to the Neevcloud dashboard to click on the server

Now set the password

Now open the console

Now, enter the username and password.

Next, open the SSH configuration file and change port 22 to any value between 30,000 and 65,000.

Run the following command to open the ssh file.

vi /etc/ssh/sshd_config

Now, uncomment the port, remove 22, and set it to any port number.

Also, uncomment the PermitRootLogin directive and change its value from no to yes.

Also, comment out the PasswordAuthentication no line.

After this run the ssh restart command

systemctl restart sshd

Here is the corrected sentence:

  • Now access the server using the changed SSH port.

Last updated