Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How to Update SSH Port in xCloud?

The SSH port is the doorway you use to connect to your server securely. Changing the default port (22) adds an extra layer of security. This documentation will show how to update SSH port on your xCloud server using the terminal and xCloud Graphic User Interface (GUI).

Preparations: Before You Update SSH Port #

Before updating ports check and prepare the following things:

Update the SSH Port Using Terminal #

We will be using the command line to update the SSH port, this method involves directly editing the SSH configuration file and restarting the service as a sudo user. Follow the step below to update the SSH port using Terminal. 

Step 1: Open Terminal #

Open the Terminal and navigate to the SSH configuration file by running the following command with nano:  โ€œsudo nano sshd_configโ€œ 

Update SSH Port

Step 2: Update the Port Number #

Look for the line that reads #Port 22.  The # symbol indicates a comment, and the actual port number is 22 (the default).  Remove the #symbol and replace 22 with your desired port number. For example, if you want to use port 2222, the line should look like this:

Update SSH Port

Once you have updated the port number, save the changes in your text editor (usually by pressing Ctrl+O followed by Enter). Then, exit the editor (typically with Ctrl+X).

Step 3: Restart SSH Service #

Run the following command in the Terminal to restart the SSH service and apply the new port configuration: โ€œ sudo service ssh restart โ€ 

Update SSH Port

Congratulations! You’ve successfully updated the SSH port on your server using the Terminal. Now you have to update it on the xCloud web GUI. 

Update SSH Port Using xCloud Web GUI #

Now, we will be updating the SSH port in the xCloud web GUI part. Follow the steps shown below and update your SSH port accordingly. 

Step 1: Go to SSH Configuration Settings #

From your xCloud dashboard, go to โ€˜Serversโ€™ and select a server to navigate settings. Click on โ€˜Othersโ€™ from the settings menu. Here Update the SSH port Number and click on โ€˜Save Settingsโ€™. 

Update SSH Port

Step 2: Add a Rule in Firewall Management #

Now add a SSH Port Rule in your firewall management. To do that navigate from the server overview page go to the โ€˜Securityโ€™ menu and click one โ€˜Add New Ruleโ€™ button. 

Update SSH Port

Here, Add your Rule name as SSH and add the decided port number. Then click on โ€˜Add Ruleโ€™ to successfully update the SSH port in xCloud. 

Update SSH Port

Following these steps, you can successfully update your SSH port on your xCloud server. Remember to choose a strong, non-standard port number and adjust your firewall settings accordingly for optimal security.

Still need help with updating your SSH Port? Contact our dedicated support team for any of your queries.

What are your feelings
Updated on September 1, 2024

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00