How to connect to your hosting with SSH Print

  • 0

SSH gives you command-line access to your website files, for developer tools such as Git, Composer and WP-CLI. Only use it if you are comfortable with the command line.

Before you start: log in to your FariHost Client Area, go to Services → My Services, choose your hosting plan and click Login to Control Panel. Then open Security → SSH Access.

Your SSH login details

  • Username: your domain name, for example yourdomain.com
  • Host: ssh.gb.stackcp.com for UK-hosted packages, or ssh.us.stackcp.com for US-hosted packages
  • Port: 22

The exact username@host for your package is shown at the top of the SSH Access page. Always copy it from there.

You can log in with an SSH key (recommended) or with a password plus a 2FA code.

Option 1: Connect with an SSH key

Mac or Linux

  1. Open Terminal and run ssh-keygen. Press Enter to accept the default file name (or type your own) and choose a passphrase.
  2. Show your public key with cat ~/.ssh/id_rsa.pub (use your key's file name if you changed it) and copy the whole line.
  3. In the control panel's SSH Access page, paste it into the Public Key box and click Add Public Key.
  4. Connect with:
    ssh yourdomain.com@ssh.gb.stackcp.com
    (use ssh.us.stackcp.com for US packages, and add -i ~/.ssh/yourkey if your key has a custom name).
  5. Type yes the first time you are asked to trust the server.

Windows (PuTTY)

  1. Install PuTTY, then open PuTTYgen and click Generate. Move your mouse until the key is created.
  2. Set a passphrase, then click Save private key and keep the .ppk file safe.
  3. Copy the public key text from the top box of PuTTYgen, paste it into the Public Key box on the SSH Access page and click Add Public Key.
  4. Open PuTTY. Go to Connection → SSH → Auth → Credentials and browse to your saved .ppk file.
  5. Go back to Session, enter the host name (ssh.gb.stackcp.com or ssh.us.stackcp.com), port 22, and click Open.
  6. When asked to log in, type your domain name, e.g. yourdomain.com.

Option 2: Connect with a password and 2FA

  1. On the SSH Access page, set an SSH password.
  2. Click Set up Authenticator and scan the QR code with Google Authenticator or a similar app.
  3. Connect with ssh yourdomain.com@ssh.gb.stackcp.com (or the US host), or in PuTTY enter the host name and log in with your domain name.
  4. Enter your SSH password, then the 6-digit code from your authenticator app.

Tips

  • The username is always your domain name, not your email or Client Area login.
  • “Permission denied” usually means the public key wasn't added, the wrong private key was used, or the domain name was typed wrong.
  • For file transfers over SSH (SFTP), see How to upload files with FTP.

Need help?

Open a support ticket from your FariHost Client Area or message us on WhatsApp and our team will help you.


Was this answer helpful?

« Back