Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
Commentaire: Add TortoiseGit

...

  1. Search for PuTTYgen and open the application. It was installed along with PuTTY so there is no need to download it.
  2. Leave all the settings as they are and click Generate. You will be asked to move your mouse around the area to generate randomness. After, enter a strong passphrase into the passphrase fields.  
  3. Save the public key as id_rsa.pub somewhere on your computer. These keys can be named anything you want, id_rsa is just the default when generating from the command line.

  4. Save the private key as id_rsa.ppk somewhere safe on your computer. Do not share this file with others. Do not close out of this window.
  5. Use PuTTY to SSH into the remote machine and enter your password. See instructions on connecting with SSH using PuTTY here.

  6. If the .ssh file has not been created type the code below. In the picture below, the user has already created the .ssh file. Because of this, the compiler throws a message that the file already exists.

    mkdir ~/.ssh
    chmod 700 ~/.ssh

  7. If the authorized_keys file does not exists:

    touch ~/.ssh/authorized_keys
    chmod 600 ~/.ssh/authorized_keys

  8. Open the authorized_keys file with a text editor of your choice (the command below opens the key in vim):
    vim ~/.ssh/authorized_keys

    A window similar to this will pop up. It is the authorized_keys file in the vim text editor within PuTTY.

  9. Copy the public key from the PuTTYgen window and paste it to the end of the authorized_file. The way PuTTYgen saves their public keys is not compatible with the authorized_keys format so you cannot copy and paste from the public file itself. You must open it from the PuTTYgen window by clicking Load, selecting the corresponding private key, and entering the passphrase.

    Click on "Load":

  10. Select private key from your files:


  11. Enter your passphrase:


  12. Copy key from PuTTYgen window:


  13. Paste key at the end of the authorized_keys file opened in vim:

  14. Save the authorized_keys file and log out of the terminal. Commands for text editors (such as how to save in vim) are located here. To save and exit out of the authorized_keys file in vim type ESC, and then :wq (save and quit). It will return you to the regular PuTTY terminal from before you opened the authorized_keys file.

  15. Open PuTTY again and in the menu to the side of the window navigate to Connection →  SSH → Auth


  16. Click Browse and find where you stored the private key that corresponds to the public key you just pasted into authorized_keys.

  17. Go back to the Session tab and enter information as you would regularly.


  18. When the terminal is open it will say:

    Authenticating with public key “rsa-key-######”
    Passphrase for key “rsa-key-#####”
  19. Enter the passphrase for the key and you are set.

To avoid entering your passphrase every time you use PuTTY for SSH, you can use PuTTY's Pageant. Instructions for Pageant are under the Pageant and Desktop FastX heading.

TortoiseGit (Windows)

  1. Follow the instructions above to generate and save your SSH keys
  2. Open your repository with TortoiseGit
  3. Select "Settings", then "Git", then "Remote"
  4. Click the three dots next to "Putty Key":
    Image Added
  5. Select private key from your files:
    Image Added
  6. Click "OK"

FastX Web Client

Windows with PuTTY Setup

...