1. Home
  2. Hosting Management
  3. FTP & SSH Access
  4. How to Log in to Your Account via SSH

How to Log in to Your Account via SSH

What is SSH?

SSH or Secure Shell is a network communication protocol that enables two computers to communicate and share data. Using an SSH connection you can easily manage or edit all your files and folders directly on the server.

While there are a few different ways of logging into an SSH server in general, you can connect to your ChemiCloud server using SSH keys. SSH keys provide an easy, yet an extremely secure way of logging into your server, that why this is the method we recommend for all users.

SSH key pairs are two cryptographically secure keys that are used to authenticate a client to a server, each key pair consists of a public key and a private key. Luckily you can easily generate and save a key pair from your cPanel account by following this guide.

Please make sure that your SSH Key has been authorized before setting up SSH authentication

How to Connect to Your Server Using SSH Keys in MacOS

1) Find the “Terminal” application in launchpad and start it.

2) Save the key from your cPanel account as described here.

3) Now you need to add the Private Key that you downloaded to your Mac OSX Keychain, this can be done by running the following command in the terminal:

ssh-add -K /path/of/private/key

You’ll be asked for the password you used when generating the SSH Key in cPanel.

4) Now you are ready to connect to the server via SSH, you just need to run this command from the terminal:

ssh [email protected]_NAME -p 1988

USER – this will be the same username as the one you use to log in to your cPanel account.

HOST_NAME (or IP address) – here you should enter either the hostname or the IP of the server to which you wish to connect;

p – the port used for the connection, we use port 1988 for SSH access.

That’s all, you should now be logged into your account.

How to Connect to Your Server Using SSH Keys in Linux

1) Find the “Terminal” application in launchpad and start it.

2) Save the key from your cPanel account as described here.

3) Now you need to add the Private Key that you downloaded to the ssh-agent, this can be done by running the following command in the terminal:

ssh-add -k /path/of/private/key

You’ll be asked for the password you used when generating the SSH Key in cPanel.

4) Now you are ready to connect to the server via SSH, you just need to run this command from the terminal:

ssh [email protected]_NAME -p 1988

USER – this will be the same username as the one you use to log in to your cPanel account.

HOST_NAME (or IP address) – here you should enter either the hostname or the IP of the server to which you wish to connect;

p – the port used for the connection which is 1988.

That’s all, you should now be logged into your account.

How to Connect to Your Server Using SSH Keys in Windows Using PuTTy

While MacOS and other Linux-based operating systems have an integrated terminal, you will need special software on Windows.

PuTTY is a free and popular open-source terminal emulator that can be used to connect to the server.

1) Install and run PuTTy. Expand the “SSH” category from the left side and click on the “Auth” button. From the right side window click on the “Browse” button and select downloaded private key, this key needs to have a *.ppk or *.txt extension. This can be downloaded directly from the cPanel account.

2) Click on “Session” tab located in the top left menu, and enter the “IP” and the port:1988 (both are in your welcome letter – this may come as an IP address or a hostname).

3) Under “Saved Sessions” enter a custom name which will be used to save this information fields. Click on the “Save” button to save all the settings so you don’t need to add the key again next time you try to connect.

4) That’s all you need to do, now just click “Open” and the server will ask you for the passphrase you have used for your SSH Key after you enter it you’ll connect to the server.

How to Connect to Your Server Using SSH Keys in Windows Using xShell

xShell is a preferred SSH application of many developers and is widely regarded as the most powerful SSH client available. The app is free for personal use and is very easy to setup.

Important TIp:

Be sure you’ve downloaded the private key you want to use from your SSH Access area in cPanel as you’ll need it to setup xShell.

Step 1: Download the app from the xShell website. After the download is complete, open the app. The Sessions tab will open by default. Click the New button in the top left corner.

Step 2: In the Properties of the New Session, you just need to configure a few settings.

First, enter a name for the session so you know what it is the next time you open xShell.

Second, make sure the Protocol chosen is SSH.

Third, for host enter the IP address, serverhostname, or domain name, to which you are connecting.

Fourth, and perhaps most important, make sure you are using port 1988, not port 22, if you are hosting at ChemiCloud.

Step 3: Next, click the Tunneling option from the menu on the left.

Make sure you uncheck the box next to Forward X11 connections to.

Step 4: Click the Authentication tab.

On this screen, enter the username for the SSH user you’re using.

Next, and this is very important, enter the password that goes to the key you are using. Not the password that goes with the SSH user, i.e. your cPanel account.

After that, make sure the checkbox next to Public Key is checked, then click Connect.

Step 5: You will be prompted to accept the key of the server to which you’re connecting. Click Accept and Save so you don’t have to worry about this again next time you connect.

Next, you need to enter the password for the key you’re using.

You will be connected to the server .

Congrats! You’ve setup Xshell and the next time you open the app, you’ll be able to easily connect!

How to Connect to Your Server Using the Terminal Feature in cPanel

cPanel features an integrated Terminal that you can use in lieu of a stand-alone terminal application. This is handy if you’re working on a different system and don’t have your personalized terminal and SSH keyset installed.

Step 1: Login to your cPanel. If you’re a ChemiCloud customer, there’s a lot of ways to do this, but the sure fire easiest way is to login to your Client Area, then open your cPanel.

Step 2: Scroll down to the Advanced section and click Terminal to open the Terminal.

Step 3: The terminal will open and you will be able to issue commands direct to the server as your cPanel user.

That’s a wrap! You now know how to easily connect to your account using SSH.

Updated on April 23, 2021

Was this article helpful?

Related Articles

Need help?
We're always here for you. Submit a ticket or Chat with a live person.
Submit Ticket

Leave a Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.