version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=w3m/0.5.3+git20210102 author=jrmu charset=UTF-8 csum= ctime=1628529787 host=38.87.162.8 name=PuTTY.PuTTYgen rev=9 targets=Sshd.Disablepassword,PuTTY.Connect text=(:title Creating SSH keys with PuTTYgen:)%0a%0aAttach:puttygen.gif%0aAttach:puttygen1.mp4%0aAttach:puttygen2.mp4%0aAttach:puttygen3.mp4%0aAttach:puttygen4.mp4%0aAttach:puttygen-cc.webm%0aAttach:puttygen-cc.mp4%0aAttach:puttygen-cc.gif%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 time=1644989095 title=Creating SSH keys with PuTTYgen author:1644989095=jrmu diff:1644989095:1640004304:=8,10d7%0a%3c Attach:puttygen-cc.webm%0a%3c Attach:puttygen-cc.mp4%0a%3c Attach:puttygen-cc.gif%0a host:1644989095=38.87.162.8 author:1640004304=jrmu diff:1640004304:1637216010:=4,7c4%0a%3c Attach:puttygen1.mp4%0a%3c Attach:puttygen2.mp4%0a%3c Attach:puttygen3.mp4%0a%3c Attach:puttygen4.mp4%0a---%0a> Attach:puttygen.mp4%0a host:1640004304=125.231.26.67 author:1637216010=jrmu 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 host:1637216010=38.87.162.8 author:1637206777=jrmu 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 host:1637206777=38.87.162.8 author:1637206628=jrmu diff:1637206628:1637203484:=3c3%0a%3c Attach:puttygen.gif%0a---%0a> Attach:puttygen.mp4%0a host:1637206628=38.87.162.8 author:1637203484=jrmu 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 host:1637203484=38.87.162.8 author:1637135678=jrmu 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 host:1637135678=38.87.162.8 author:1637134594=jrmu 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 host:1637134594=38.87.162.8 author:1628529787=jrmu 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 host:1628529787=38.87.162.8