add ssh in mac

user@localhost: ssh-keygen -t dsa

Generating public/private dsa key pair.

Enter file in which to save the key (/Users/user/.ssh/id_dsa): id_dsa

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in id_dsa.

Your public key has been saved in id_dsa.pub.

The key fingerprint is:

16:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost

This will create a private key written to ~/.ssh/id_dsa and a public key written to ~/.ssh/id_dsa.pub. The passphrase is used to protect your key. You will be asked for it when you load your key. You can do that using the following command:

ssh-add ~/.ssh/id_dsa

2——–

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

site ground is

ssh  billboar@billboardsmtl.com -p18765

  • 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 (e.g. siteground300.com);
  • 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 SiteGround 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. SiteGround has long experience with various SSH issues and our support team will gladly help you with any SSH-related questions/problems you may have.

Leave a Comment