Advanced Site Tools
How to log in to my SiteGround shared account via SSH in Linux?

How to log in to my SiteGround shared account via SSH in 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 shared hosting account via SSH in Linux, please follow these steps:

  • First, you will need to generate an SSH key pair – a public key and a private key. This can be done in Site Tools > Devs > SSH Keys Manager. The process is covered in this tutorial.
  • Next, you need to copy the private key from Site Tools > Devs > SSH Keys Manager. Go to Manage SSH Keys and next to the one which was created, go to the kebab menu > Private Key. Save it into a text file on your Linux computer.
  • Change the permissions of the saved file using the Terminal app and the following command:
chmod 600  /User/youruser/private_key
  • 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:


The SSH credentials are available in Site Tools > Devs > SSH Keys ManagerUnder Manage SSH Keys, choose the one which was created in the previous step and go to the kebab menu > SSH Credentials.

Share This Article