How to use Putty

Anonim

Logo. Putty

Experienced users have heard of SSH connection protocol, which allows you to remotely manage OS or computer. Mainly this protocol enjoy the administrators of machines with systems on the Linux or Unix kernel, but not so long ago there is a utility for Windows - Putty. About how to use it, we want to talk today.

How to use Putty

Using this utility consists of several steps: downloads and installations on a target computer, primary setting and connecting to a particular server. Also consider the SSH file transfer methodology.

Step 1: Loading and Installation

  1. To download and install the utility, go through the link above. On the official website of the program, find the "Package Files" block, in which you select one of the links under the category "MSI ('Windows Installer')".
  2. Upload Putty from the official site to use the utility

  3. Load the installer and run it. In the first window, click "Next".
  4. Start setting PUTTY to use utility

  5. Select the location of the program files. It is advisable to leave the default - for the correct operation of the Putti should be on the system disk.
  6. Putty location during the installation process to use the utility

  7. Next, it is necessary to select the components installed. As a rule, the default option is quite enough, and delete or add components only to experienced users. Click on the "Install" button - Please note that you will need administrator rights.

    Setting up PUTTY components during the installation process to use the utility

    Ending installation PUTTY to use the utility

    Further instructions suggests that the graphical interface utility will be involved. With a shortcut on the "Desktop", the console version is launched, so you need to use the application folder in the "Start" menu to start the GUI.

    Running the Putty graphical interface to use the utility

    Step 2: Setup

    Before using the utility should be adjusted accordingly. You already have a detailed instruction on the execution of this procedure, so just give a link to it.

    Setting up Putty application for Windows

    Read more: How to configure Putty

    Step 3: SSH connection, Saving session and authorization data

    1. To connect the SSH protocol, open the Session tab, which is located at the very top of the options. See the following picture:

      Open Putty Connects tab to use utility

      First of all, make sure that the item "SSH" is marked. Next, in the "Host Name" and "Port" fields, give the name or IP address of the server and the connection port, respectively.

    2. Click on the "Open" button at the bottom of the program window.

      Start a Putty Connection Session to use the utility

      Offer Add a server key to a list of trusted, click Yes.

    3. Save Putty Connection Key to use utility

    4. Next, go to the console window that has opened. It should manually enter the username and password to connect to the server.

      Entering the PUTTY connection data to use the utility

      Note! Entering the password characters is not displayed in the console, so it may seem that the utility "Buggy"!

    5. After entering the password, the connection to the server will be installed, and you can fully work.

    Successful PUTTY connection to use utility

    Saving session

    If you want to often connect to the same server, the session can be saved so as not to enter the address and port. This is done as follows:

    1. Do the steps from step 1 of the previous stage, but this time refer to the "Saved Sessions" settings block. Enter any suitable name to the appropriate field.
    2. Enter the name of the saved session in Putty to use the utility

    3. Next, use the "Save" button.
    4. Saving the session in Putty to use the utility

    5. In the list of saved sessions will be recorded with the previously entered name. To download, simply select this session and click "Load".

    Loading the saved session in Putty to use the utility

    Authorization by key

    In addition to saving the session, you can also save a special key, which will allow you to do without constant entry of authorization data.

    1. Find the Putti folder in the Start menu, in which you open Puttygen.
    2. Make sure the encryption mode switch is in the "RSA" position, and click "Generate".
    3. Create key in Puttygen to use utility

    4. In the process of creating a key, the utility will ask you to tell the mouse and press the random key on the keyboard - this is required to generate information entropy. After creating the sequence, click on the "Save Public Key" and "Save Private Key" buttons.

      Save the created key in Puttygen to use the utility

      You can also optionally set a password to access a private key, otherwise a warning will appear when you click on the corresponding button.

    5. Save private wrench without password in Puttygen to use utility

    6. To use the key, it will be necessary to move to /root/.ssh/authorized_keys file. To do this, enter the following commands:

      LS -A ~ /. | Grep .ssh.

      Create key folder on the server in Putty to use the utility

      If there is no such folder, it should be created by the command:

      mkdir ~ / .ssh

    7. Key folder on the server in Putty to use the utility

    8. Next, create the required file, the commands are as follows:

      CD ~ / .ssh

      Touch Authorized_Keys.

      Vi authorized_keys

    9. The key file on the server in Putty to use the utility

    10. Insert the data from the public key obtained in Puttygen to the end of the created file.

      Important! The key should go a solid string, without transfer!

    11. Enter key data in Putty to use the utility

    12. Finally, set the access rights to the key file and its directory:

      CHMOD 600 ~ / .SSH / Authorized_keys

      Chmod 700 ~ / .ssh

    13. Access rights to Paapka with keys in Putty to use the utility

    14. Next, run Putty and in the options tree, open the "Connection" settings - "SSH" - "Auth". Use the Browse button in the PRIVATE KEY File For Authentication position and select a private key in the "Explorer" dialog box created in step 3.
    15. Add key to Putty to use utility

    16. Save the connection settings, then re-connect to the server. Log in to it by entering login. If everything is done correctly, the server instead of a password request will use a private key located on a client machine, and a public key that is on the server itself.

    Conclusion

    We reviewed the features of using the Putty utility for connecting over SSH and disassembled several examples of basic actions with the application. As you can see, everything is not so difficult, as it may seem at first glance.

Read more