Your can create a SSH key to connect to your hosting account using the cPanel control panel. This key will serve a purpose of being an authorised remote connection to your account.
This article explains how you can create a SSH key and then use this either on Windows 10 or Mac OS X to connect to your hosting account.
Create a SSH Key
The first step is to log into your cPanel account. If you are unsure on how to do this, please view the following help article - 'How to log into cPanel'.
Scroll down to the 'Security' section and choose 'SSH Access'.
Choose 'Manage SSH Keys',
Generate the new SSH key by choosing 'Generate a New Key'.
Type in a password for your SSH key into the 'Key Password' and 'Reenter Password' sections. You can also make use the of the 'Password Generator' if desired.
Once the password has been entered, choose 'Generate Key'.
The key generation is now complete. Choose 'Go Back' to continue the process.
Under the 'Public Keys' section, we can now see our new key. However, at the moment the 'Authorization Status' is set to 'not authorized' which we need to change. We do this by selecting the 'Manage' option.
Authorise the key by selecting the 'Authorize' option.
The process will now confirm that the key is authorised. Select 'Go Back' to continue the process.
We now need to download the private key to the local system (the machine that you will connect to your account from). To do this, in the 'Private Keys section, choose the 'View/Download' option.
Convert the key to PPK format by firstly typing in the password that you set earlier for your SSH key. Once entered, select 'Convert'. This will then start a download on your system which is your private key.
This key will need to be configured on your SSH application in order to successfully authenticate.
If you are using Windows, put the downloaded 'id_rsa.ppk' SSH key file in a secure folder on your system.
Windows 10 - SSH with the SSH Key
This section explains how to SSH with a SSH key using PuTTY. If you do not already have PuTTY installed, please see 'Using SSH / SFTP'.
Open PuTTY and type in:
Host Name (or IP address): You should type in your cpanel account name followed by @ then your server IP address i.e. youraccountname@yourserverIPaddress
Port: Replace the SSH port numbered 22 to 4873
Next down the left hand side, choose 'SSH' followed by 'Auth'.
Under 'Authentication parameters', select the 'Browse' and then locate where on your system your SSH key is. Once found, double click it to return back to PuTTY.
On the left hand side, return back to the 'Session' section where you were before. Select 'Open' at the bottom.
If you are connecting for the first time, you may see a security alert. This is absolutely normal, so you should choose 'Yes'.
The SSH connection should now be established. You have now successfully connected to your hosting account using your SSH key.
Mac OS X - SSH with the SSH Key
Using Mac OS X, you will need to put the downloaded 'id_rsa.ppk' SSH key file in '/.ssh/authorized_keys/'.
Open your Launchpad and use the search at the top to type in 'terminal'.
Click the Terminal application to open it. You should now see a command prompt.
If you've not yet moved your SSH key to the right folder on your system, you can do this by typing these commands with the respective replacement.
Do you need to increase the memory limit in WordPress? Getting an error about memory Exhausted? The memory limit is one of the most common WordPress errors as the default limit of memory in WordPress is only set to 64mb! But there’s good news! The Memory Exhausted error is one...
A vulnerability has been discovered in the “All In One WordPress Migration” WordPress plugin. All versions earlier than, and including 6.97 contain a vulnerability which allows Cross-Site Scripting (XSS).With over 2 million active installations, this vulnerability has the potential to be high impact, however, this is lessened by the nature...
HostPresto will be launching a European point of presence in the coming weeks, specifically in Amsterdam. For customers needing their data located within the EU still please contact support to request migration to this location with ticket subject ‘EU Migration’. We will ensure this is actioned well before the Brexit...