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 UniqueVPS 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 john@john.com -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 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

SSH ip command

If you wish to obtain information about your server’s IP on a Linux machine using SSH you can use...

SSH rm command

If you wish to remove a file or folder from your Linux system you can use SSH rm command. In this...

SSH echo command

One of the most useful commands in a Linux environment is echo. With it, you can provide output...

SSH history command

If you wish to find what commands you have previously executed in a Linux environment you can use...

SSH cd command

SSH cd command is mainly used to navigate in your Linux environment. In this article, we’ll show...

Powered by WHMCompleteSolution