Home
/
Advanced Site Tools
/
SSH
/
How to enable SSH for Cloud on Linux?

How to enable SSH for Cloud on Linux?

SiteGround uses key-based SSH authentication instead of plain username & password. The SSH port on SiteGround’s servers is also 18765 instead of the default port 22.

To connect to your SiteGround Cloud hosting account via SSH in Linux, follow these steps:

  • You have to generate an SSH key pair from Site Tools > Devs > SSH Keys Manager.
  • Copy the private key from Site Tools > Devs > SSH Keys Manager. Under Manage SSH Keys, go to the kebab menu next to the key which you have created > Private Key and save it into a text file on your Linux computer.
  • The next step is to load the private key into your SSH-agent using your Terminal using the ssh-add command:
ssh-add /User/youruser/private_key

Make sure that you replace /User/youruser/private_key with the location of your private key text file.

  • Next, you will be prompted to type in the key’s password. You need to type the same password that you have placed while generating your keys in Site Tools.
  • Finally, you can connect via SSH. To connect, use the following command in your Terminal:
ssh USER@HOST_NAME -pPORT

Where you replace USER, HOST_NAME, and PORT with the following:

USER – your username.
HOST_NAME – enter the host or IP of the server to which you wish to connect.
PORT – the port for the connection – use 18765

The SSH Credentials are available in your Site Tools > Devs > SSH Keys Manager. Under Manage SSH Keys, choose the key which you have created and go to the kebab menu > SSH Credentials.

For example, if your username is user1 and you are hosted on the c80000.sgvps.net server you should execute the following command:

ssh user1@c80000.sgvps.net -p18765

Share This Article