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:

  • You have to generate an SSH key pair (public and a private key) in cPanel -> SSH/Shell Access.
  • After that you need to copy the private key from cPanel 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:

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 cPanel.

Finally, you can connect via SSH. To connect, use the following command in your Terminal:

Where you replace USER, HOST_NAME and PORT with the following:
USER - your cPanel username.
HOST_NAME - enter the host orIP of the server to which you wish to connect (e.g.
PORT - the port for the connection - use 18765

Your cPanel username, server hostname/IP address of your hosting account are all available in your User Area -> My Accounts -> Information & Settings.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!