How to log in to my dedicated server via SSH in Linux?

Important: Note that by default incoming connections on port 18765 are blocked on all our dedicated servers. If you have a dedicated server and you would like to access it over SSH, you should first post a new ticket to us to whitelist your IP and then follow the instructions below

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

  • You have to generate an SSH key pair from cPanel -> SSH/Shell Access.
  • 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.

  • You will be prompted for a password, so make sure that you type the same password that you have created while generating your keys in cPanel.
  • Finally, you can connect via SSH. To connect, use the following command in your Terminal:

USER - the user for which you want to establish the SSH connection
HOST_NAME (or IP address) - here you should enter the host/IP of the server to which you wish to connect
PORT - the port for the connection - here you should enter 18765

For example, if your cPanel username is dsuser1 and you are hosted on the server you should execute the following command:

Press "Enter" and if everything has been set up properly, you will establish an SSH connection to your dedicated server.

Note: 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!