First you should generate an SSH key pair on your Mac OS.
Alternatively, you can generate the SSH keys through your cPanel-> SSH/Shell access section. There you should enter the passphrase and get the private key.
Then you should load your private SSH key using the following command:
computer_local_host_name: ssh-add /Users/Youruser/.ssh/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.)
Next, you need to upload the public key to your account using the SSH/Shell Access tool in your cPanel.
Finally, you should initiate an SSH connection:
computer_local_host_name: ssh USER@HOST_NAME -pPORT
- USER - the user for which you want to establish the SSH connection; this is 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 account.
The SSH/Shell access feature is available free of charge for all Hostlantern hosting accounts by default.
If you need SSH access to your manage your website but your current host does not allow it, you can check our SSH web hosting package. Hostlantern has long experience with various SSH issues and our support team will gladly help you with any SSH-related questions/problems you may have.