Knowledge Base Article

How to log in to my Cloud hosting/VDS via SSH in Mac OS?

The following instructions are valid only for SiteGround customers. If you are not a SiteGround customer, you can check our general SSH instructions for more information on how to connect to an account via SSH.

 

First you should generate an SSH key pair on your Mac OS.

 

Then you need to load your private SSH key using the following command:

user@localhost: ssh-add id_dsa
Enter passphrase for id_dsa:
Identity added: id_dsa (id_dsa)


The passphrase is the same as the one you have set during the generation of the SSH key.

Then you should initiate an SSH connection:

user@localhost: ssh USER@HOST_NAME -pPORT

- USER -
the user for which you want to establish the SSH connection. If your account is hosted by SiteGround, this will be the same username as the one you use to log in to your cPanel.

- 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;


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



Rating

Please indicate if this article was helpful for you.

rating :  5.0 from 5
views :  1315
votes :  1

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!