Almost all (if not all) Linux distributions come with a Terminal or you can install any terminal you prefer on your Linux distribution through which you can easily connect via SSH to your web hosting account. All you need to do is to launch the Terminal application on your Linux distribution and run the following command:
ssh -i /path/to/keyname user@hostname -p portnumber
– /path/to/keyname is the path to a private SSH key downloaded from your cPanel account with us used for authentication. The file needs to be saved somewhere on your Linux machine with permissions 600. To change its permissions, you can use:
chmod 600 keyname
– user is your cPanel account’s username with us.
– hostname is the hosting account’s primary domain name or you can use the hosting account’s IP address or hostname if the domain is not pointing to your account.
– portnumber is the port number opened for the SSH connection. If you are on a shared server with PremiumRDP the port number is 27880
For example, if you a have cPanel user john with hostname john.com, port 27880, and a downloaded SSH key in the same directory named id_rsa, the code will look like this:
ssh -i id_rsa [email protected] -p 27880
Once you hit enter, it will ask you for your SSH key’s passphrase which is the one you set when you created the SSH key in your cPanel.