From 28bd246b83c4b6db39c2c37ab5d6b6fa252a938e Mon Sep 17 00:00:00 2001 From: Tai Date: Thu, 24 Dec 2020 21:24:13 -0800 Subject: [PATCH] Updated Putty Instructions --- initial ubuntu setup/putty tutorial/README.md | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/initial ubuntu setup/putty tutorial/README.md b/initial ubuntu setup/putty tutorial/README.md index 83ab9f5..5bb828c 100644 --- a/initial ubuntu setup/putty tutorial/README.md +++ b/initial ubuntu setup/putty tutorial/README.md @@ -4,18 +4,25 @@ In order to setup SSH access to a linux machine by keys you need to paste in the To get that public key you need to generate a private key first. -It’s important that you don’t share your private key. Your public key can be shared without any issues. You only need one private key to SSH to multiple machines. - - ## 1.0 Best Practices -Only use one private key per physical machine. Public key however can be on many Linux machines. If you have a Desktop and a Laptop for example. They both should have their own private keys. However their public keys should be on each of the Linux machines you want to access. - +Only use one private key per local physical machine. Public key however can be given away to as many remote Linux machines you want. For example. if you have a Desktop and a Laptop. They both should have their own private keys. However their public keys should be on each of the Linux machines you want to access. ## 1.1 Generating Public Private Key Pair +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) -Download putty somewhere on the Internet and install it. Personally I use ninite.com, check PuTTY, download, then run the installer. +4. Then click “Generate”. Once you do it will ask you to make random mouse movements to help it make it extra random. -After putty is installed search for PutTTYgen in Windows and run it. +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 )