How do I connect via SSH on an Apple Mac?

To connect using SSH on a Mac,please follow the instructions below:

1. Log in to Hamro.Cloud
2. Go to Manage Hosting and click Manage on the hosting package you want to connect.
3. Select SSH Access icon.
4. Now you need a public key, which is done via Terminal utility on Mac. So, Open Terminal on the Mac.
5. Enter the following command:

ssh-keygen
6. Press Enter
7. You will be asked to enter the location where you want the public and private keys saving. In this case, we are keeping this as a default location. Press Enter

8. You will be then asked for a passphrase, in this guide we are leaving this empty. If you want to keep passphrase, please make sure you remember it as you will be asked again for this later. Press Enter.

9. Now, You will be asked to confirm the passphrase but as we've left this empty, you can just press enter.
10. Your key is generated and the public key is now saved in a specified location. Here, in our example, it's been saved in:
/Users/hamro/.ssh/id_rsa.pub.
11. You will need to copy the path and enter the following command:

cat /Users/hamro/.ssh/id_rsa.pub.
12. The key is now outputted. Please, copy the whole key (from start to the end)
13. Paste the key in Hamro.Cloud's Public Key field which is located in the SSH Access section. The handle should be added automatically. Click Add Public Key.
14. This might take up to 5 minutes.
15. Now, you'll need to go back to the Terminal and enter the SSH username and hostname which is found at the top of the SSH Access section. It should be something like [email protected]
You'll need to prefix it with the ssh command as:
ssh [email protected]
16. You'll be asked to confirm if you would like to connect. Simply type yes and press enter.

Finally, You have successfully connected to your hosting package via SSH from Mac at Hamro.Cloud. 

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I import a .sql file via the command-line?

With SSH access for your package, you can use the following command-line instructions to import a...

How do I connect via SSH?

We recommended you to connect to your package via SSH only if you're familiar with the command...