Skip to content
WebHostsOnline Web-Solutions
  • Home
  • Domains
    • Domains
    • Transfer Your Domain
    • Order SSL Certificates
  • Cloud Hosting
    • AWS Hosting
    • Cloud i Hosting from WebHostsOnline
    • Google Cloud Servers
    • Magento Hosting
    • WooCommerce Hosting
    • Timeline Backups
  • Hosting
    • Shared Hosting
    • Website Builder
    • Website Design & Hosting
  • Email Hosting
  • WordPress
    • Free Hosting
    • WooCommerce Hosting
    • WordPress Hosting
  • VPS Hosting
  • Tools
    • SSL Certificates
    • Timeline Backup-Pro
    • Website Turbo
  • My Account
Contact Us
alt
WebHostsOnline Web-Solutions
  • hello@webhostsonline.co.uk
back to top

How do I connect a website via SSH?

  • WebHostsOnline Web-Solutions
  • /knowledge-base
  • How do I connect a website via SSH?

My Account

3
  • How do I register a new domain with WebHostsOnline?
  • Which nameservers should I use with WebHostsOnline hosting?
  • Where can I update my account / profile details?

Cloud Servers

10
  • How do I add another server/include to an SPF record?
  • Managed Cloud Server: Manage Your Cloud Server
  • Managed Cloud Server: Registering Domain Names
  • How can I clone a site with Timeline Backups?
  • How do I restore a site using Timeline Backups?
  • How do I set up Automatic Timeline Backups?
  • Does your hosting support Django?
  • Does your Windows hosting support .NET Core?
  • How do I activate my free SSL?

Domains

10
  • How can I create a subdomain?
  • Managed Cloud Server: Registering Domain Names
  • Domain transfer statuses explained?
  • What are WebHostsOnline nameservers?
  • How to transfer your domain from 123-reg WebHostsOnline
  • How to transfer your domain from Ionos to WebHostsOnline
  • How to transfer your domain from GoDaddy to WebHostsOnline
  • How to transfer your domain from Easyspace to WebHostsOnline
  • My domain is locked with my current provider, what can I do?
  • How do I transfer my domain to you?

Email Hosting

13
  • How to create an autoresponder?
  • How do I add Office 365 DNS records?
  • Why are the IMAP folders missing from my iPhone or iPad?
  • What are the recommended Thunderbird Mail client settings?
  • How do I add another server/include to an SPF record?
  • WordPress: use SMTP with and without plugins
  • What are the Free Tools with WordPress Hosting?
  • How do I use the free WebHostsOnline Website Malware Scanner? 
  • What are my email sending limits?
  • How do I set up email on my iPhone?
  • How do I set up my WebHostsOnline mailbox in Outlook?
  • How do I create a mailbox?
  • How to use the email migration tool

FTP

2
  • How to connect Web Hosting via FTP?
  • I can’t connect via FTP, what can I do?

Web Hosting

18
  • How can I clone a site with Timeline Backups?
  • How do I restore a site using Timeline Backups?
  • How do I set up Automatic Timeline Backups?
  • Does your hosting support Django?
  • WordPress caching: what you need to know
  • Do I need caching plugins in addition to the WebHostsOnline CDN?
  • Why am I getting a cache status ‘MISS’?
  • How do I use WebHostsOnline’s CDN?
  • How do I create a Website Acceleration Suite template?
  • Improve your WordPress website’s TTFB
  • What is the Website Acceleration Suite?
  • Why could my WordPress migration fail?
  • Do you support WordPress multisite?
  • How do I activate my free SSL?
  • How do I run a search and replace in the WordPress CLI?
  • How do I create a MySQL database in MyWebHostsOnline
  • How do I change PHP version?
  • How to modify your hosts file for Windows, macOS and Linux.

WordPress

21
  • I installed WordPress on the temporary URL, how can I change it to my domain name?
  • WordPress Multisite Setup Guide
  • How can I clone a site with Timeline Backups?
  • How do I restore a site using Timeline Backups?
  • How do I set up Automatic Timeline Backups?
  • Why do I get an Internal Server Error 500 and how to fix it?
  • WordPress: use SMTP with and without plugins
  • WordPress caching: what you need to know
  • Do I need caching plugins in addition to the WebHostsOnline CDN?
  • Why am I getting a cache status ‘MISS’?
  • How do I use WebHostsOnline’s CDN?
  • How do I create a Website Acceleration Suite template?
  • Improve your WordPress website’s TTFB
  • What is the Website Acceleration Suite?
  • Why could my WordPress migration fail?
  • Do you support WordPress multisite?
  • How do I activate my free SSL?
  • How do I run a search and replace in the WordPress CLI?
  • Is it safe to update the PHP version on my website?
  • How do I migrate a website manually?
  • WooCommerce
    • WordPress Multisite Setup Guide

Migrations

3
  • Why could my WordPress migration fail?
  • How do I migrate a website manually?
  • How to modify your hosts file for Windows, macOS and Linux.

SSL Certificates

2
  • How do I activate my free SSL?
  • Can I use the free SSL if my site doesn’t use the WebHostsOnline nameservers?

Security

3
  • What are the Free Tools with WordPress Hosting?
  • How do I use the free WebHostsOnline Website Malware Scanner? 
  • Protecting your password from brute-force attacks

DataBase

13
  • How to connect Web Hosting via FTP?
  • MS-SQL
    • How do I import a .sql file via the command-line?
    • How do I manage my Microsoft SQL database?
    • What is MS-SQL?
  • MySQL
    • How do I export a .sql file via the command-line
    • How do I download or back up my MySQL Database?
    • How do I import a .sql file via the command-line?
    • Can I view my FTP, email address, or database passwords?
    • How do I create a MySQL database?
    • What’s the maximum MySQL database size allowed?
    • Can I set my database hostname as ‘localhost’?
    • How do I import a .sql file via phpMyAdmin?
    • What is MariaDB?

VPS

14
  • How do I connect to my Windows virtual machine via Remote Desktop?
  • How set up Mastodon on a Self-Managed VPS
  • How do I connect to an Unmanaged VPS using SSH?
  • How do I install and enable Apache and PHP modules on my cPanel VPS?
  • Does your hosting support Django?
  • How do I raise an additional IP address on my CentOS virtual machine?
  • How do I add an additional IP address to my virtual machine?
  • What version of Windows do you run on the Windows servers?
  • Does your Windows hosting support .NET Core?
  • How do I connect to my Windows virtual machine via Remote Desktop?
  • Windows
    • How do I connect to my Windows virtual machine via Remote Desktop?
    • Managing the Windows Application Pool
    • What version of Windows do you run on the Windows servers?
    • Does your Windows hosting support .NET Core?

Backups

3
  • How can I clone a site with Timeline Backups?
  • How do I set up Automatic Timeline Backups?
  • How do I restore a site using Timeline Backups?

SSH

8
  • Can I use sudo on shared hosting?
  • What is the PHP memory_limit?
  • How do I connect via SSH using 2FA?
  • How do I connect via SSH?
  • How do I import a .sql file via the command-line?
  • How do I connect via SSH on an Apple Mac?
  • How do I connect via SSH on an Apple Mac?
  • How do I run Composer via SSH?
View Categories
  • Home
  • /knowledge-base
  • How do I connect a website via SSH?

How do I connect a website via SSH?

5 min read

AI Doc Summarizer Doc Summary
AI Doc Summarizer Thinking Thinking

SSH, or ‘Secure Shell’, is a method of remotely accessing and managing your site files, as well as allowing for configuration changes and remote command execution within your file space. SSH on the 20i platform is encrypted, and protected by either 2FA or public/private key pairs to validate the connection, making it reliable and secure. 

Below are instructions for connecting to your site via SSH for Windows, Apple Mac and Linux devices using public/private key pairs. If you wish to connect using 2FA, please see our guide How do I connect to SSH using 2FA?

Note: It’s only recommended that you connect to your package via SSH if you’re familiar with the command line interface.

Note: It may take up to 30 minutes for your public key to fully set up on the system.

Note: If your SSH connection closes immediately, your account may be blocked for unauthorized Sudo use. Please contact support for assistance. 

Windows #

If you’re using Windows, you’ll need to download an SSH Client to access SSH.

Note: This guide uses PuTTY which is a free SSH client for Windows and can be downloaded here:

https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
  1. Once you have downloaded PuTTY, search for and open PuTTY Key Generator on your computer.
  2. Select Generate and move the mouse around in the gray box to generate some Randomness. This will generate a public key.
  3. Add a passphrase (password). This is what you’ll need to put into the command line interface.
  4. Log in to MyWebHostsOnline, head to Manage Hosting and select the package that you want SSH access for. Then select, SSH Access from under the Security section.
  5. Then input the public key that was generated from PuTTYgen into the Public Key box. A handle will be generated automatically. Then select Add Public Key.
  6. Head back to PuTTY Gen and select Save private key. Save this as any name you want.
  7. Open PuTTY. Down the left-hand side, select to expand the SSH, select Auth and then Credentials.
  8. There should be an area labelled Private key file for authentication – select Browse next to this and add the private key you have just saved.
  9. Head back to Session using the left-hand menu and add the SSH host name. The hostname you wish to use depends on what data center you’re using. For the UK data center, use ‘ssh.gb.stackcp.com’, and for the US use ‘ssh.us.stackcp.com’. Then, once that has been added, select Open.
  10. The command line interface will then open. You’ll want to enter your domain here as your username (e.g. domain.co.uk).
  11. You’ll then be prompted for the passphrase that you set earlier. Enter this in the prompted area – PuTTY will hide the characters being entered for security purposes, so do not worry if any input doesn’t seem visible.
  12. You’ll then be logged into your account and have full access to your SSH area on your site.

Linux

Connecting to SSH on Linux will require you to set up a Public/Private Key pair on your local machine, add it to the SSH area on your package and then connect using the details provided.

  1. Open a Terminal session, and navigate to the directory that you wish to store your Public/Private Key pair in.
  2. Enter the command ssh-keygen and follow the on-screen prompts – the tool will prompt you for a name for the file, as well as setting a password. This is what you’ll need to put into the command line interface later, so make note of it once set.
  3. Once the files have been created by the process, log in to MyWebHostsOnline, head to Manage Hosting and select the package that you want SSH access for. Then select, SSH Access from under the Security section.
  4. Back in your Linux terminal, use the command catto view the contents of your public key file. This will be the file ending in .pub that was generated by the command earlier and should use the name you set.   

    For example, if you chose to name your key example, the command to open it would becat example.pub

  5. Copy the contents of the file, and paste it into the Public Key box in the SSH area on MyWebHostsOnline. A handle will be generated automatically. Then select Add Public Key.
  6. Now that you’ve got your public key added to MyWebHostsOnline, you can connect via SSH by using the command:  

    ssh -i keyname hostname  

    Where keyname is the name of your private key file you entered earlier. The hostname you wish to use depends on what data centre you’re using. For the UK data centre, use ‘ssh.gb.stackcp.com’, and for the US use ‘ssh.us.stackcp.com’.

  7. You’ll be asked if you wish to connect using the key. Enter yes.
  8. You’ll then be prompted for the passphrase that you set earlier. Enter this in the prompted area – PuTTY will hide the characters being entered for security purposes, so do not worry if any input doesn’t seem visible.
  9. You’ll then be logged into your account and have full access to your SSH area on your site.

MacOS

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

  1. Log in to MyWebHostsOnline.
  2. Head to Manage Hostingand 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
  6. Press Enter
  7. 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
  8. 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.
  9. You’ll be asked to confirm the passphrase, since we’ve left this empty just press Enter.
  10. 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/WebHostsOnline/.ssh/id_rsa.pub
  11. Copy the path and enter the following command:  
    cat /Users/WebHostsOnline/.ssh/id_rsa.pub
  12. The key will be outputted, copy the whole key from the start to the end.
  13. Paste the key back in MyWebHostsOnline in the Public Key field in the SSH Access section. The handle should be added automatically. Press Add Public Key. Please note that can take up to 5 minutes.
  14. 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.gb.stackcp.com for packages in the UK, and domain.com@ssh.us.stackcp.com for packages in the US. You’ll need to prefix it with the ssh command as follows:  
    ssh domain.com@ssh.gb.stackcp.com  
    Or  
    ssh domain.com@ssh.us.stackcp.com

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 WebHostsOnline.

Updated on September 24, 2025

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest

Powered by BetterDocs

Leave a Comment Cancel reply

Table of Contents
  • Windows
WebHostsOnline Web-Solutions

Contact

  • Church Yard,
    Ashford Kent.
    TN23 1QG
  • hello@webhostsonline.co.uk

Links

  • Cloud Hosting
  • Joomla Hosting
  • Laravel Hosting
  • .Net Core Hosting
  • NodeJS Hosting
  • PHP Hosting
  • VPS Hosting
  • My WebHostsOnline Demo
  • WebMail

Support

  • Contact Us
  • Knowledge Base
  • System Status

Company

  • About
  • Blog
  • Cookie Policy
  • Disclaimer
  • Imprint
  • Privacy Statement
  • Terms and Conditions
  • Website Design Service Terms and Conditions of Service

All rights reserved © WebHostsOnline Web-Solutions. | Part of the GMCi Group
Registration No. 17215955, Registered in England and Wales.

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behaviour or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}