🏆 India’s Tech, Global Scale: Unlimited Hosting for Your Limitless Growth.

How do I connect via SSH on an Apple Mac?

Last updated 1 week ago
43 Views

how to connect SSH on Macbook

Connecting to Your O2OHost Hosting Package via SSH on macOS

To establish an SSH connection from a Mac to your O2OHost hosting package, follow these steps:

1. Log In to Your Control Panel
  • Access your O2OHost control panel at cp.O2OHost.in.
2. Navigate to SSH Access
  • Go to Manage Hosting and select Manage for the hosting package you wish to connect to.
  • Click on the SSH Access icon.
3. Generate SSH Keys
  • Open Terminal on your Mac.
  • Run the following command to generate a new SSH key pair:ssh-keygen
  • Press Enter to confirm the default file location for saving the keys (e.g., /Users/yourusername/.ssh/id_rsa).
  • When prompted for a passphrase, you may leave it empty (press Enter) or enter a passphrase if you prefer. If you choose to use a passphrase, ensure you remember it, as you will need it to connect.
  • Confirm the passphrase (if set) by pressing Enter again.

The SSH key pair will be generated, with the public key typically saved at /Users/yourusername/.ssh/id_rsa.pub.

4. Add Your Public Key to the O2OHost Control Panel
  • In Terminal, output the contents of your public key file with the following command:cat /Users/yourusername/.ssh/id_rsa.pub
  • Copy the entire key from the output.
  • Return to the O2OHost control panel, and paste the copied key into the Public Key field in the SSH Access section. Click Add Public Key. Please note that it may take up to 5 minutes for the key to be processed.
5. Connect via SSH
  • In Terminal, use the following command to initiate the SSH connection:

    ssh [email protected]

    Replace domain.com with your actual domain as provided in the SSH Access section.

  • When prompted to confirm the connection, type yes and press Enter.

You should now be successfully connected to your O2OHost hosting package via SSH from your Mac. If you encounter any issues or need additional assistance, please refer to the O2OHost documentation or contact our support team.

Was this article helpful?

Let us know so we can improve our support.

Still need help?

Contact Support