Включить ssh

How to work with hosting via SSH using Putty?

Hello to all! I’m trying to deal with the problem of working Python-code on a site running WordPress 🙂 And this problem turned out to be very interesting, but not immediately solved – because frankly – there is no time in the sequence of events.

In any case, all manuals designed to help with these issues begin with the fact that you need to solve the problem of working with hosting through an SSH connection. So let’s finally solve this question;) (consciously skipping the authorization question;)):

1. Activate the possibility of ssh-connection in the control panel of your hosting (drop-down menu in the upper right corner, and then select – hosting control panel):
Enable ssh

2. In the item with the name of your hosting, select “Settings”:
enable ssh

3. In the column on the right we find “Settings” and the item “SSH access”:
enable ssh2

4. If you have access enabled, do not touch anything. And if it is off, then access must be enabled;) (it’s logical) :). To do this, click on “Management” in this paragraph and get a pop-up window that looks something like this:
enable ssh3

By default, there is 22 port for access, but no one bothers to change it;)

5. Now in the upper right corner of the hosting control panel we find the “cPanel Admin” button and click on it:
GoDaddy cPanel Admin
A new tab will open, in it you need to find the “Security” section and the “SSH access” item:
GoDaddy cPanel security

6. In the window that opens, poke the “SSH key management” button:
SSH key management

7. Find the “Create a new key” button and click:
create a new key

8. We see the control panel of the created keys:
create key

  • Enter the key name
  • Password for working with the generated key
  • Duplicate password
  • Leave the key type unchanged
  • The key size can be changed if necessary
  • After which we click “Create Key”, resulting in something like:
    Key generation completed
    Press the “Back” button, and return to the key management section

    9. In this section, we observe the picture: we have the items “Public Keys” and “Private Keys”, and the key that we just created in the “Public Keys” section is not authorized to work. Let’s fix it. To do this, click on the “Management” item to the right of the name of the key you created:
    authorize the key
    after which we observe the following picture:
    authorize key 2
    Click on the “Authorize key” button and get this picture:
    authorization completed
    then click the “Back” button and return to the key management point.

    10. We find the section “Private keys”, and poke on the item “View/Download” near the name of your key:
    Private key download

    11. In the window that opens, we see that we have the opportunity to download the key we created and convert the key to PPK format. It is the “Transform” item that interests us, because the PPK format is a format that is perceived by PuTTY. In order to convert the key – enter the password for the key and click on “Convert”. If everything is done correctly, then we get this:
    download key
    And now this converted key – download to your computer.

    12. Now go to Google and find PuTTY in it.

    13. Download, install it, and in the opened horse of the program enter the name of the hosting to which we will connect and the port through which the connection will take place:
    Putty
    Now in the list on the left we find the SSH section, and in it the Auth subkey:
    Putty SSH
    where we enter the address to the key that we created and converted, after which, finally, we click on the “Open” button :):
    Putty SSH key
    If everything is done correctly, PuTTY will display a connection window with a request for a login of access to the hosting and password:
    Putty authorization

    Well, in the end – if the password and login match the true ones – we will get this window that confirms that we started working with hosting via SSH using Putty:
    Putty ok
    Congratulations 🙂 And yes, about the commands needed to work through SSH I wrote earlier 🙂 Welcome, and thank you for your attention!

    If you have questions – ask them by mail or in Telegram, and just in case – a video with instructions 🙂