How do I connect via SSH on an Apple Mac?

How do I connect via SSH on an Apple Mac?

To connect via SSH on a Mac you can follow the instructions below:

  1. Log in HERE.
  2. Head to Manage Hosting and select Manage on the hosting package you want to connect to.
  3. Select the SSH Access icon.
  4. You’ll now need to generate a public key, on a Mac this is done via the Terminal utility. Open Terminal on the Mac.
  5. Enter the following command into the Terminal:

ssh-keygen

  1. Press Enter
  2. You’ll be prompted to enter the location that you want the public and private keys saving. In this case, we’ll keep this as the default location. Press Enter
  3. You’ll be prompted for a passphrase, in this guide we’ll just leave this empty. If you enter one, make sure you remember this as you’ll be prompted for this later. Press Enter.
  4. You’ll be asked to confirm the passphrase - since we’ve left this empty just press Enter.
  5. Your keys will have been generated and the public key will have been saved in a specified location, in our example, it has been saved in:

/Users/user/.ssh/id_rsa.pub.

  1. Copy the path and enter the following command:

cat /Users/user/.ssh/id_rsa.pub.

  1. The key will be outputted, copy the whole key from the start to the end.
  2. Paste the key back into the Public Key field in the SSH Access section. The handle should be added automatically. Press Add Public Key.
  3. Please note that can take up to 5 minutes.
  4. Head back to Terminal and enter the SSH username and hostname found at the top of the SSH Access section, it should be something like domain.com@ssh.stackcp.com You’ll need to prefix it with the ssh command as follows:

ssh domain.com@ssh.stackcp.com

  1.  You’ll be prompted to confirm you would like to connect, simply type yes and press enter.

You should have successfully connected via SSH from your Mac to your hosting package at VISYOO.


    • Related Articles

    • How do I connect via SSH?

      It's only recommended that you connect to your package via SSH if you're familiar with the command line interface.  Windows If you're using Windows, you'll need to download an SSH Client to access SSH. This guide uses PuTTY which is a free SSH client ...
    • How do I connect via SSH using 2FA?

      It's only recommended that you connect to your package via SSH if you're familiar with the command-line interface. Here is how to connect using two-factor authentication (2FA). Windows If you're using Windows you will want to download an SSH client ...
    • How do I connect via FTP?

      Connecting via FTP to your web hosting is quick and easy. Ensure you have an FTP client available. We'd recommend FileZilla.  Head to Manage Hosting Select Manage On the right-hand side of the control panel, you'll see the FTP panel. You'll need to ...
    • How do I run Composer via SSH

      At VISYOO we run multiple different versions of PHP. On our SSH servers, the execution of commands like “composer” will run with our default, system-level PHP that is also used for internal tools at VISYOO. This is a thin version of PHP without all ...
    • I can't connect via FTP, what can I do?

      There are a few common reasons why you may not be able to connect successfully via FTP. 1. Make sure you're using the correct hostname If you’ve not switched the nameservers to point to VISYOO, you’ll need to use a different hostname to connect via ...