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.comfor UK-hosted packages, orssh.us.stackcp.comfor 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
- Open Terminal and run
ssh-keygen. Press Enter to accept the default file name (or type your own) and choose a passphrase. - 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. - In the control panel's SSH Access page, paste it into the Public Key box and click Add Public Key.
- Connect with:
ssh yourdomain.com@ssh.gb.stackcp.com
(usessh.us.stackcp.comfor US packages, and add-i ~/.ssh/yourkeyif your key has a custom name). - Type yes the first time you are asked to trust the server.
Windows (PuTTY)
- Install PuTTY, then open PuTTYgen and click Generate. Move your mouse until the key is created.
- Set a passphrase, then click Save private key and keep the .ppk file safe.
- 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.
- Open PuTTY. Go to Connection → SSH → Auth → Credentials and browse to your saved .ppk file.
- Go back to Session, enter the host name (
ssh.gb.stackcp.comorssh.us.stackcp.com), port 22, and click Open. - When asked to log in, type your domain name, e.g.
yourdomain.com.
Option 2: Connect with a password and 2FA
- On the SSH Access page, set an SSH password.
- Click Set up Authenticator and scan the QR code with Google Authenticator or a similar app.
- 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. - 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.