Note that if your public key is not in your clipboard anymore for some reason or another, and you are thus unable to paste it into the editor, you can open just PUTTYGEN again, load your key and copy the public part to the clipboard again (see above). When inside the editor, right-click to paste the contents of your clipboard. You can use any editor that you are comfortable with on the remove server. Then create (or edit) the authorized_keys file within that directory: pico. ssh directory on the server if it does not exist yet: mkdir. Log in with your regular username and password. Note that when you connect to a server for the first time, you need to verify (if you want) and save the remote server’s SSH fingerprint. Select the session you want and click on Open to initiate the connection. Type in the server name in the Host Name field and some name for the session (you can use the server-name here as well or make something up). If you are connecting for the first time, it is probably a good idea to create and save a session now, so that you won’t have to type in the server name again and again later on. Start PUTTY to establish an interactive connection to the server. To get the public key to the server, you will need to log on using your regular credentials one last time. You can close the “PuTTY Key Generator” window now. Type in a passphrase for your new key to protect it and then click on Save private key to save your key file in a location only you personally have access to. To do so, you can right click on the public key, then chose Select all and then right click again and chose Copy.
When the key genartion is done, select the public part on the top and copy it to the clipboard. Move your mouse around a bit to generate better randomness while the key is generated. Select Ed25519 as the type of key in the “Parameters” section for a modern key format that will give you a smaller public key string which will be easier to copy and paste later. PUTTYGEN.EXE, PAGENT.EXE and PUTTY.EXE on Windows desktop Key Generation
#Putty ssh key login archive
In case they are not installed or you run into problems, they can simply be extracted from the ZIP archive and run directly (no formal installation or admin account necessary). This guide uses the following 3 programs: PUTTY.EXE, PUTTYGEN.EXE, PAGENT.EXE. Make sure that PuTTY is available on your computer. If you have OpenSSH on your Windows, Mac or Linux computer, things should be a lot easier and you can type commands directly in a Terminal window.
#Putty ssh key login Pc
This guide is about key-based logins to remote Unix/Linux-servers from a Windows PC using PuTTY.