Finished PuTTY Tutorial

pull/1/head
Tai 3 years ago committed by GitHub
parent 28bd246b83
commit 2c3a31440f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,18 +11,55 @@ Only use one private key per local physical machine. Public key however can be g
1. Download putty somewhere on the Internet and install it. Personally I use ninite.com, check PuTTY, download, then run the installer.
2. After putty is installed search for PutTTYgen in Windows and run it.
![](search-putty-gen.png)
3. Select Key > SSH-2 RSA-key.
![](ssh-2-rsa-key.png)
4. Then click “Generate”. Once you do it will ask you to make random mouse movements to help it make it extra random.
5. Then copy the public key as shown in the below picture.
![](copy-public-key.png)
6. On your remote servers. Navigate to /home/yourusername/.ssh (if the .ssh folder doesn't exist create it). Then create a file called authorized_keys, edit it, and paste the public key from step 5 and save.
7. Now click “Save private key” and save it somewhere on your computer. In my example I keep mine in C:\Keys\ but you can save it anywhere you want.
![](save-private-key.png )
![](save-private-key.png)
## 1.2 Connecting to a Remote Server with private key on PuTTY
1. Launch PuTTY. Type in the Hostname or IP Address of the server you want to connect to. As for the port you can usually leave it as the default 22 unless specified otherwise by your administrator.
2. After that expand SSH and select Auth as shown in the picture below. Then browse and find the privatekey you saved earlier in step 7 in the previous section above.
![](connecting1.png)
3. (Optional) Now select Data on the left side as shown below.
![](connecting2.png)
4.(Optional) Here you may enter in the username you will be using to login. This step is entirely optional as you can manually enter in your username when PuTTY prompts you to instead.
5. Now scroll up and go back to “Session” on the navigation.
![](connecting3.png)
6. Finally we are going to store the session on PuTTY. Just type in a name for your session then click Save.
![](connecting4.png)
7. Once it is saved you can just double click on the saved session to launch it.
![](connecting5.png)
## 1.3 Forgot public key
If you need to get your public key from your private .ppk key. Launch PuttyGen. After that click on “Load”. Then browse and choose your private .ppk key. After that your public key should appear under the Key box.
## 2.0 Optional: Keepass + KeeAgent for Window
The fastest and secure way to quickly SSH to every single one of your remote instances.
How to setup KeeAgent + Keepass at 24m25s: https://www.youtube.com/watch?v=e6G8zHZlhv8&t=24m25s

Loading…
Cancel
Save