PuTTY.PuTTYgen 6.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. version=pmwiki-2.2.130 ordered=1 urlencoded=1
  2. agent=w3m/0.5.3+git20210102
  3. author=jrmu
  4. charset=UTF-8
  5. csum=
  6. ctime=1628529787
  7. host=38.87.162.8
  8. name=PuTTY.PuTTYgen
  9. rev=7
  10. targets=Sshd.Disablepassword,PuTTY.Connect
  11. text=(:title Creating SSH keys with PuTTYgen:)%0a%0aAttach:puttygen.gif%0aAttach:puttygen.mp4%0a%0a!! Generate Public/Private Key%0a%0aFor additional security, you can use a public/private key pair to login. If you disable [[sshd/disablepassword|password authentication]], your sshd setup will be more secure.%0a%0a# In the parameters field at the bottom, select the type of key to generate. This guide uses Ed25519.%0a# Click @@Generate@@\\%0aAttach:puttygen-random.png%0a# '''Optional''': In @@Key passphrase@@, provide a passphrase and write it down securely. Type the passphrase again in @@Confirm passphrase@@. '''WARNING''': If you use a passphrase, the key becomes worthless if you forget the passphrase!%0a# Click @@Save public key@@. Give it a name like @@publickey.pub@@. This key can be shared with anyone.%0a# Click @@Save private key@@. Give it a name like @@privatekey.ppk@@. Keep the private key safe; '''never''' share this key!%0a%0a'''Optional''': To export this key for another ssh client, click on @@Conversions@@ in the menu at top, then click @@Export OpenSSH key@@. Give it a name like @@private.key@@.%0a%0aYou have now generated your public and private key!%0a%0a!! Adding the Public Key%0a%0a# Connect with PuTTY using a password as described at top.%0a# Edit @@~/.ssh/authorized_keys@@:\\%0aAttach:putty-editauthorized.png%0a # Select the public key from PuTTyGen, from the field @@Public key for pasting into OpenSSH authorized keys file@@. Type @@ctrl+c@@ to copy.\\%0aAttach:putty-copyauthorized.png%0a # Paste the key into @@~/.ssh/authorized_keys@@ by pressing @@Shift+[Ins]@@.%0a # Alternatively, you can get the public key from the .ppk you created earlier. Open it with Notepad. It should look like this:%0a%0a[@%0a---- BEGIN SSH2 PUBLIC KEY ----%0aComment: "ed25519-key-20210809"%0aAAAAC3NzaC1lZDI1NTE5AAAAINCB6GpCoQPG4byfLwqHyA2SMyTV7RjfVw+bqO3h%0afTDF%0a---- END SSH2 PUBLIC KEY ----%0a@]%0a%0aIgnore the comment lines, copying only the key; join the lines together, and add @@ssh-ed25519@@ in front:%0a%0a[@%0assh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINCB6GpCoQPG4byfLwqHyA2SMyTV7RjfVw+bqO3hfTDF%0a@]%0a%0a!! Logging in with Private Key%0a%0a# Open PuTTY%0a# Go to @@Connection > SSH > Auth@@%0a# In @@Private key file for authentication@@, click @@Browse@@,%0aand load your private key ('''hint''': it ends in .ppk).%0a# Click @@Session@@ and fill in @@Hostname@@ as described in the [[PuTTY/Connect|PuTTY connect guide]]. Then, click @@Open@@.%0a# If you used a passphrase for the key, type it in.\\%0aAttach:putty-keypassphrase.png%0a
  12. time=1637216010
  13. title=Creating SSH keys with PuTTYgen
  14. author:1637216010=jrmu
  15. diff:1637216010:1637206777:=4c4,7%0a%3c Attach:puttygen.mp4%0a---%0a> Attach:puttygen1.mp4%0a> Attach:puttygen2.mp4%0a> Attach:puttygen3.mp4%0a> Attach:puttygen4.mp4%0a
  16. host:1637216010=38.87.162.8
  17. author:1637206777=jrmu
  18. diff:1637206777:1637206628:=4,7d3%0a%3c Attach:puttygen1.mp4%0a%3c Attach:puttygen2.mp4%0a%3c Attach:puttygen3.mp4%0a%3c Attach:puttygen4.mp4%0a
  19. host:1637206777=38.87.162.8
  20. author:1637206628=jrmu
  21. diff:1637206628:1637203484:=3c3%0a%3c Attach:puttygen.gif%0a---%0a> Attach:puttygen.mp4%0a
  22. host:1637206628=38.87.162.8
  23. author:1637203484=jrmu
  24. diff:1637203484:1637135678:=3c3,6%0a%3c Attach:puttygen.mp4%0a---%0a> Attach:puttygen1.mp4%0a> Attach:puttygen2.mp4%0a> Attach:puttygen3.mp4%0a> Attach:puttygen4.mp4%0a
  25. host:1637203484=38.87.162.8
  26. author:1637135678=jrmu
  27. diff:1637135678:1637134594:=3,6c3,6%0a%3c Attach:puttygen1.mp4%0a%3c Attach:puttygen2.mp4%0a%3c Attach:puttygen3.mp4%0a%3c Attach:puttygen4.mp4%0a---%0a> Attach:putty1.mp4%0a> Attach:putty2.mp4%0a> Attach:putty3.mp4%0a> Attach:putty4.mp4%0a
  28. host:1637135678=38.87.162.8
  29. author:1637134594=jrmu
  30. diff:1637134594:1628529787:=2,6d1%0a%3c %0a%3c Attach:putty1.mp4%0a%3c Attach:putty2.mp4%0a%3c Attach:putty3.mp4%0a%3c Attach:putty4.mp4%0a
  31. host:1637134594=38.87.162.8
  32. author:1628529787=jrmu
  33. diff:1628529787:1628529787:=1,50d0%0a%3c (:title Creating SSH keys with PuTTYgen:)%0a%3c %0a%3c !! Generate Public/Private Key%0a%3c %0a%3c For additional security, you can use a public/private key pair to login. If you disable [[sshd/disablepassword|password authentication]], your sshd setup will be more secure.%0a%3c %0a%3c # In the parameters field at the bottom, select the type of key to generate. This guide uses Ed25519.%0a%3c # Click @@Generate@@\\%0a%3c Attach:puttygen-random.png%0a%3c # '''Optional''': In @@Key passphrase@@, provide a passphrase and write it down securely. Type the passphrase again in @@Confirm passphrase@@. '''WARNING''': If you use a passphrase, the key becomes worthless if you forget the passphrase!%0a%3c # Click @@Save public key@@. Give it a name like @@publickey.pub@@. This key can be shared with anyone.%0a%3c # Click @@Save private key@@. Give it a name like @@privatekey.ppk@@. Keep the private key safe; '''never''' share this key!%0a%3c %0a%3c '''Optional''': To export this key for another ssh client, click on @@Conversions@@ in the menu at top, then click @@Export OpenSSH key@@. Give it a name like @@private.key@@.%0a%3c %0a%3c You have now generated your public and private key!%0a%3c %0a%3c !! Adding the Public Key%0a%3c %0a%3c # Connect with PuTTY using a password as described at top.%0a%3c # Edit @@~/.ssh/authorized_keys@@:\\%0a%3c Attach:putty-editauthorized.png%0a%3c # Select the public key from PuTTyGen, from the field @@Public key for pasting into OpenSSH authorized keys file@@. Type @@ctrl+c@@ to copy.\\%0a%3c Attach:putty-copyauthorized.png%0a%3c # Paste the key into @@~/.ssh/authorized_keys@@ by pressing @@Shift+[Ins]@@.%0a%3c # Alternatively, you can get the public key from the .ppk you created earlier. Open it with Notepad. It should look like this:%0a%3c %0a%3c [@%0a%3c ---- BEGIN SSH2 PUBLIC KEY ----%0a%3c Comment: "ed25519-key-20210809"%0a%3c AAAAC3NzaC1lZDI1NTE5AAAAINCB6GpCoQPG4byfLwqHyA2SMyTV7RjfVw+bqO3h%0a%3c fTDF%0a%3c ---- END SSH2 PUBLIC KEY ----%0a%3c @]%0a%3c %0a%3c Ignore the comment lines, copying only the key; join the lines together, and add @@ssh-ed25519@@ in front:%0a%3c %0a%3c [@%0a%3c ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINCB6GpCoQPG4byfLwqHyA2SMyTV7RjfVw+bqO3hfTDF%0a%3c @]%0a%3c %0a%3c !! Logging in with Private Key%0a%3c %0a%3c # Open PuTTY%0a%3c # Go to @@Connection > SSH > Auth@@%0a%3c # In @@Private key file for authentication@@, click @@Browse@@,%0a%3c and load your private key ('''hint''': it ends in .ppk).%0a%3c # Click @@Session@@ and fill in @@Hostname@@ as described in the [[PuTTY/Connect|PuTTY connect guide]]. Then, click @@Open@@.%0a%3c # If you used a passphrase for the key, type it in.\\%0a%3c Attach:putty-keypassphrase.png%0a
  34. host:1628529787=38.87.162.8