How to connect to my account via SSH in Linux?

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.

  • 0 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

How to Install WordPress via SSH

Since WordPress is the most widely used CMS it’s installation process has been made as simple and...

SSH Execute Command on a Remote server

Via SSH you can connect to a remote server’s shell. This will allow you to execute commands on...

How to connect to your shared hosting account via SFTP with FileZilla

SFTP is a convenient way to use SSH, while also using the interface of a simple FTP. In order to...

SSH netstat command

If you wish to debug or track statistics of your network in a Linux environment you can use SSH...