To work with SSH on shared hosting, you can use both the terminal built into the panel and many popular clients, such as Putty.

Use cPanel's built-in terminal

To use the terminal, go to the panel from your personal area and go to ExtendedTerminal.

file

file

In the next menu, in some cases a warning may be displayed, click I understand and want to proceed to continue.

file

Then enter the necessary commands in the terminal, you can either with files and folders or with other commands like Composer.

file

Use Putty for access

You can connect to the server via SSH using the ssh client PuTTY.

You can download a russified version of Putty here.

Launch the program. On the page with the basic settings of the PuTTY session:

Host name (or IP address) - specify the IP address of your server or Hostname of the server, which can be found in the properties of the order.
Saved Sessions - name of the connection.
Port - 20022.
Connection type - SSH.

Enter the necessary data and open the session.

file

A new PuTTY Security Alert window will appear, asking you to accept the public key of your shared hosting server. Click Yes if you trust this host. If you want to connect only once, without adding the key to the cache, click No.

file

In the PuTTY window that opens, enter your login from the order page and press "Enter".
On the next line, enter your password and press "Enter"

file

For security reasons, the password you enter does not appear as symbols on the screen.

You will then have access to your user's shell.

Using SSH keys for access.

The default access is login and password authentication, but it is also possible to use keys for access.

Generating a key in cPanel

Then go to cPanel, go to Security → ** SSH Access**.

file

Next, create a new key pair.

file

file

Specify a passphrase and a name.

file

Once the keys are successfully generated, they will be displayed in the SSSH Access menu, no new keys are allowed by default.

file

To allow access by the created key, click Manage, then Authorize.

file

Then download the private key and save it to our SSH client, if necessary you can convert the key to the PPK format, for example, to import it into PuTTY

file

Updated April 17, 2023