SSH Key Setup at a Glance
SSH key setup takes four commands on your own computer, and the table shows each one and what it proves.
| Step | Command | What it does |
|---|---|---|
| 1. Generate the key pair | ssh-keygen -t ed25519 -C "laptop" | Writes a private key and a .pub public key to ~/.ssh |
| 2. Check the fingerprint | ssh-keygen -lf ~/.ssh/id_ed25519.pub | Shows the short ID you can compare later |
| 3. Copy the public key | ssh-copy-id -i ~/.ssh/id_ed25519.pub user@host | Appends it to ~/.ssh/authorized_keys on the server |
| 4. Test the key login | ssh -i ~/.ssh/id_ed25519 user@host | Logs in with the key instead of the account password |
The steps apply to the OpenSSH client on Linux, macOS and Windows 10 or 11, and to Linux servers running OpenSSH. Before you start you need a user account on the server and one working way in, usually password login or a provider console. The commands and outputs were captured on Ubuntu 24.04 with OpenSSH 9.6, and older releases can differ in defaults and messages.
The server address 203.0.113.10 and the user deploy are documentation examples, so replace them with your own. The test server listened on port 22419, which is why the commands carry -p 22419. Leave that option out if your server uses the standard port 22.
These steps set up key login to a Linux server user. GitHub and GitLab also take SSH public keys, but you paste those into your account settings, not into a server's authorized_keys file.
Generate an SSH Key With ssh-keygen
To generate an SSH key, run ssh-keygen on the computer you connect from, not on the server.
Check for an Existing SSH Key First
Check for an existing SSH key first, because one key can serve many servers and does not need replacing for each new one.
find ~/.ssh -maxdepth 1 -type f \( -name 'id_*' -o -name '*.pub' \) -print/home/lanedesk/.ssh/id_ed25519
/home/lanedesk/.ssh/id_ed25519.pub
/home/lanedesk/.ssh/lane_deploy.pubThis test machine already had a default key and a second one named lane_deploy. If the command prints nothing, there are no matching key files in ~/.ssh. If it says the folder does not exist, you have no keys yet and ssh-keygen will create it. To keep a separate key per device or job, give the new one its own name. Its public half is then ~/.ssh/id_ed25519_office.pub.
ssh-keygen -t ed25519 -C "office laptop" -f ~/.ssh/id_ed25519_officeRun ssh-keygen With Ed25519
Run ssh-keygen with Ed25519 and a label so you can tell the key apart later.
ssh-keygen -t ed25519 -C "lanedesk laptop"Press Enter to accept the default file, then type a passphrase twice. Nothing appears on screen while you type it. This is the real run on Ubuntu 24.04.
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/lanedesk/.ssh/id_ed25519):
Created directory '/home/lanedesk/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/lanedesk/.ssh/id_ed25519
Your public key has been saved in /home/lanedesk/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:NOniPPwn3qMDHT4JtzWxziEmuDsoRrRe2GaYMq/1AaQ lanedesk laptop
The key's randomart image is:
+--[ED25519 256]--+
| |
| .. |
| . . + o |
| + . oo=.= |
|E B ..BSO o |
|o* *.+..* o |
|+o=...=. . |
|.+o.o. oo.o |
|oo .. .+=.. |
+----[SHA256]-----+The -C text is only a label stored at the end of the public key, so pick something that tells you later which device the key belongs to. Without it the label is user@hostname.
Check the Key Files ssh-keygen Created
The key files ssh-keygen created are a private key without an extension and a public key ending in .pub.
ls -l ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub-rw------- 1 lanedesk lanedesk 464 Nov 26 03:59 /home/lanedesk/.ssh/id_ed25519
-rw-r--r-- 1 lanedesk lanedesk 97 Nov 26 03:59 /home/lanedesk/.ssh/id_ed25519.pubThe private key is readable only by you (mode 600) and stays on this computer. The public key is a single line that you can share with any server you want to log in to. Never copy the private key to a server.
cat ~/.ssh/id_ed25519.pubssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDgZh18Tyv/xHs6o9oI7zepjk+DOiakUaQK9VEDhlFxi lanedesk laptopIf losing this computer must not lock you out, keep a backup of the private key in encrypted storage, never in a public repository, a shared folder or an email.
Which SSH Key Type to Choose
For the SSH key type, choose Ed25519 unless a server or device you must reach does not support it.
| Type | Command | When to use it |
|---|---|---|
| Ed25519 | ssh-keygen -t ed25519 | The default in OpenSSH 9.6 and the best choice for current servers. Its size is fixed, so -b is ignored |
| RSA | ssh-keygen -t rsa -b 4096 | Older servers, appliances or services that reject Ed25519. Without -b the size is 3072 bits |
| ECDSA | ssh-keygen -t ecdsa | Only when a policy asks for NIST curves |
| Ed25519-SK | ssh-keygen -t ed25519-sk | A FIDO2 hardware key that supports Ed25519. Logging in needs the key present and any touch or PIN it asks for |
| ECDSA-SK | ssh-keygen -t ecdsa-sk | A FIDO2 hardware key that supports ECDSA-SK, the usual choice when Ed25519-SK is not available |
| DSA | Do not create one | OpenSSH 9.6 skips DSA keys by default, as the test below shows |
Running ssh-keygen with no options on this machine also produced an Ed25519 key, and an RSA key made without -b came out at 3072 bits. A DSA key that was added to the test server was refused before it was even offered.
debug1: Skipping ssh-dss key /home/lanedesk/dsatest - corresponding algorithm not in PubkeyAcceptedAlgorithmsChoose a Passphrase for the SSH Key
A passphrase for the SSH key encrypts the private key file, so anyone who copies the file also needs the passphrase to use it.
It protects the file on disk and in backups. It does not protect a key that is already unlocked, and it does not protect you once the key is unlocked in an agent on a compromised computer, and it does nothing for the server side. The ssh-keygen manual suggests 10 to 30 characters that are not a simple sentence. A key with no passphrase is sometimes used for automation, and in that case limit what it can do on the server and keep the file on one machine only.
You can add, change or remove the passphrase later without changing the key, so servers keep trusting it.
ssh-keygen -p -f ~/.ssh/id_ed25519Check the SSH Key Fingerprint
The SSH key fingerprint is a short hash of the public key that identifies it without showing the whole key.
ssh-keygen -lf ~/.ssh/id_ed25519.pub256 SHA256:NOniPPwn3qMDHT4JtzWxziEmuDsoRrRe2GaYMq/1AaQ lanedesk laptop (ED25519)The same value appears in the server log when you log in, and in hosting panels that list stored keys, so you can confirm which key was used. Some older panels show MD5 fingerprints instead. Add -E md5 to print that form.
ssh-keygen -lf ~/.ssh/id_ed25519.pub -E md5256 MD5:4e:38:63:53:fe:80:de:f0:6d:14:50:14:b6:24:24:de lanedesk laptop (ED25519)If you lose the .pub file but still have the private key, ssh-keygen -y -f ~/.ssh/id_ed25519 prints the public key again. It asks for the passphrase first. The reverse is not possible. A lost private key cannot be rebuilt from the public key or fingerprint, so make a new pair and replace the old public key on each server.
Load the SSH Key Into ssh-agent
Loading the SSH key into ssh-agent means you type the passphrase once per session instead of at every login.
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
ssh-add -lAgent pid 16297
Enter passphrase for /home/lanedesk/.ssh/id_ed25519:
Identity added: /home/lanedesk/.ssh/id_ed25519 (lanedesk laptop)
256 SHA256:NOniPPwn3qMDHT4JtzWxziEmuDsoRrRe2GaYMq/1AaQ lanedesk laptop (ED25519)Most Linux desktops and macOS already run an agent, so you may only need ssh-add. On a plain server shell the first line starts one. The agent keeps loaded keys until they are removed, the agent exits or a lifetime set with ssh-add -t runs out. ssh-add -D removes them all, so use it or log out before leaving a shared computer.
Copy the SSH Key With ssh-copy-id
To copy the SSH key with ssh-copy-id, give it the public key and the server, then sign in once with the account password.
ssh-copy-id -i ~/.ssh/id_ed25519.pub -p 22419 deploy@203.0.113.10/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/lanedesk/.ssh/id_ed25519.pub"
The authenticity of host '[203.0.113.10]:22419 ([203.0.113.10]:22419)' can't be established.
ED25519 key fingerprint is SHA256:evqnYQZDtVP88lYDoZ6dUU3jiKO/zX09UqD0zZnrVa0.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
deploy@203.0.113.10's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh -p 22419 'deploy@203.0.113.10'"
and check to make sure that only the key(s) you wanted were added.This output is real, captured against the test server with its loopback address replaced by the example one. The fingerprint question is about the server, not your key. Compare it with the host key fingerprint your provider shows, or with ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub run in the server console, before you type yes.
Without -i, ssh-copy-id first copies the keys your agent holds and otherwise the newest ~/.ssh/id*.pub file, so -i makes sure the right key goes up. Running ssh-copy-id again normally skips keys that are already installed, because it tests each key first. Avoid -f unless you need to bypass that check, since it can add duplicates.
/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
(if you think this is a mistake, you may want to use -f option)| Option | What it does |
|---|---|
-i file.pub | Copies only that key |
-p 2222 | Connects to a server port other than 22 |
-n | Dry run that prints the keys it would add and changes nothing |
-f | Skips the check for keys already installed, which can add duplicates |
-s | Uses SFTP for servers that block running remote commands |
On the test server ssh-copy-id created the folder and file itself with safe modes, which you can confirm from the server console.
stat -c '%a %U:%G %n' /home/deploy/.ssh /home/deploy/.ssh/authorized_keys700 deploy:deploy /home/deploy/.ssh
600 deploy:deploy /home/deploy/.ssh/authorized_keysAdd the Public Key to authorized_keys Manually
You can add the public key to authorized_keys manually when ssh-copy-id is missing, as it is on the Windows OpenSSH client.
cat ~/.ssh/id_ed25519.pub | ssh -p 22419 deploy@203.0.113.10 'umask 077; mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys'The double >> appends, so keys already in the file stay. A single > would replace the file and remove every other key, including the one you may be using right now. The command prints nothing when it works. This one was run on the test server and returned exit code 0.
If you can only reach the server through a web console, paste the line by hand instead. Log in as the user who will use the key, not as root, so the file gets the right owner.
mkdir -p ~/.ssh && chmod 700 ~/.ssh
nano ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keysPaste the whole public key as one line, starting with ssh-ed25519 and ending with the comment. A key split over two lines or with a missing character fails silently, and ssh-keygen -lf ~/.ssh/authorized_keys on the server prints one fingerprint per valid line. In the test it skipped a damaged line without an error, so a key missing from that list is the one to paste again.
Log In With the SSH Key Using ssh -i
To log in with the SSH key using ssh -i, point the option at the private key file, not the .pub file.
ssh -i ~/.ssh/id_ed25519 -p 22419 deploy@203.0.113.10If you still get a password prompt, the key was not accepted. Adding -v shows which key was offered and how you were let in.
ssh -v -p 22419 -o PasswordAuthentication=no deploy@203.0.113.10 true 2>&1 | grep -E "Offering|Server accepts|Authenticated to"debug1: Offering public key: /home/lanedesk/.ssh/id_ed25519 ED25519 SHA256:NOniPPwn3qMDHT4JtzWxziEmuDsoRrRe2GaYMq/1AaQ agent
debug1: Server accepts key: /home/lanedesk/.ssh/id_ed25519 ED25519 SHA256:NOniPPwn3qMDHT4JtzWxziEmuDsoRrRe2GaYMq/1AaQ agent
Authenticated to 203.0.113.10 ([203.0.113.10]:22419) using "publickey".The line using "publickey" is the proof that the key worked. It proves the key login for this user only. It does not prove password login is off, which is checked separately further down.
Use ssh -i With More Than One Key
With more than one key, add IdentitiesOnly=yes so ssh -i offers only the file you name and not every key in the agent.
ssh -i ~/.ssh/lane_deploy -o IdentitiesOnly=yes -p 22419 deploy@203.0.113.10Servers allow a limited number of attempts, six by default, and each key the agent offers counts as one. With many keys loaded you can hit "Too many authentication failures" before the right key is tried, and this option avoids it.
Save the Key in the SSH Config File
Saving the key in the SSH config file at ~/.ssh/config lets you type a short name instead of the address, port and key.
Host lane-test
HostName 203.0.113.10
Port 22419
User deploy
IdentityFile ~/.ssh/lane_deploy
IdentitiesOnly yesOn Linux and macOS keep the file private with chmod 600 ~/.ssh/config, because ssh refuses a config file that other users can write. In the test, mode 666 gave Bad owner or permissions on /home/lanedesk/.ssh/config and mode 644 still worked. Now ssh lane-test connects. To check what ssh will really use for a name, ask it to print its settings.
ssh -G lane-test | grep -E '^(hostname|port|user|identityfile|identitiesonly) 'user deploy
hostname 203.0.113.10
port 22419
identitiesonly yes
identityfile ~/.ssh/lane_deploySSH Key Permissions That Break Login
SSH key permissions that are too loose make sshd ignore authorized_keys, and the client only sees "Permission denied".
This check is the StrictModes setting, which is on by default. Each row below was tested on the Ubuntu 24.04 server with the same key, so the results show OpenSSH 9.6 as Ubuntu ships it.
| What was changed | Key login | Server log |
|---|---|---|
~/.ssh 700 and authorized_keys 600, owned by the user | Works | Accepted publickey |
authorized_keys 644 | Works | Accepted publickey |
authorized_keys 666 | Refused | bad ownership or modes for file |
authorized_keys 664 with another user in the group | Refused | bad ownership or modes for file |
~/.ssh 775 with another user in the group | Refused | bad ownership or modes for directory |
| Home folder 757 | Refused | bad ownership or modes for directory /home/deploy |
authorized_keys 600 but owned by root or another user | Refused | Only Failed publickey, because the user cannot read it |
On Ubuntu, group write was accepted while the group was the user's own private group with no other members, and refused as soon as a second user joined it. Other distributions can be stricter, so the safe target is no group or other write anywhere on the path.
The Real Error When authorized_keys Is Wrong
The real error when authorized_keys is wrong shows up in two places, and only the server says why.
deploy@203.0.113.10: Permission denied (publickey,password).Authentication refused: bad ownership or modes for file /home/deploy/.ssh/authorized_keys
Failed publickey for deploy from 203.0.113.10 port 54786 ssh2: ED25519 SHA256:NOniPPwn3qMDHT4JtzWxziEmuDsoRrRe2GaYMq/1AaQOn Ubuntu with systemd, read the server log with sudo journalctl -u ssh -n 30, or look in /var/log/auth.log where rsyslog is installed. The test server wrote its own log file, so those two commands were not run here. The source address in the log is the example one.
Fix the authorized_keys Permissions
To fix the authorized_keys permissions, run these as root or with sudo on the server, using the real user name.
chown -R deploy:deploy /home/deploy/.ssh
chmod 700 /home/deploy/.ssh
chmod 600 /home/deploy/.ssh/authorized_keys
chmod go-w /home/deploy
stat -c '%a %U:%G %n' /home/deploy /home/deploy/.ssh /home/deploy/.ssh/authorized_keys750 deploy:deploy /home/deploy
700 deploy:deploy /home/deploy/.ssh
600 deploy:deploy /home/deploy/.ssh/authorized_keysOwner and modes like these let the key login work again on the test server. Turning StrictModes off also makes the error go away, but it lets anyone who can write those files add their own key, so fix the modes instead.
Private Key Permissions on the Client
Private key permissions on the client matter too, because ssh ignores a key file that other users can read.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/home/lanedesk/.ssh/lane_deploy' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/lanedesk/.ssh/lane_deploy": bad permissions
deploy@203.0.113.10: Permission denied (publickey,password).Run chmod 600 ~/.ssh/lane_deploy and the same command logs in again. This often happens after copying a key from a USB stick, a zip file or a Windows folder.
Turn Off Password Login After the Key Works
Turn off password login only after the key works, and keep your current session open until the new setting is tested.
Back up the config first, then add the setting in a file that is read early. sshd uses the first value it finds for each setting, and on some cloud images a file in /etc/ssh/sshd_config.d/ already sets PasswordAuthentication yes.
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
grep -riE '^(passwordauthentication|kbdinteractiveauthentication)' /etc/ssh/sshd_config /etc/ssh/sshd_config.d/
printf 'PasswordAuthentication no\nKbdInteractiveAuthentication no\n' | sudo tee /etc/ssh/sshd_config.d/00-keys-only.conf
sudo sshd -t && sudo systemctl reload sshBoth lines matter, because keyboard interactive login through PAM can also accept a password. In the test, this drop in file won over a PasswordAuthentication yes placed later in the main file, as expected when the first value wins. sshd -t checks the syntax and prints nothing when the file is valid. The reload was not run here because the test machine has no systemd, so the test sshd was restarted with the same setting instead. Check the value sshd really uses.
sudo sshd -T | grep -E '^(passwordauthentication|kbdinteractiveauthentication|pubkeyauthentication) 'pubkeyauthentication yes
passwordauthentication no
kbdinteractiveauthentication noFrom a second terminal, try a login that is not allowed to use keys. It should now be refused with only publickey left in the list.
ssh -p 22419 -o PubkeyAuthentication=no deploy@203.0.113.10 truedeploy@203.0.113.10: Permission denied (publickey).Then confirm a normal key login still works before closing the first session. If you get locked out, use the provider console, delete 00-keys-only.conf and reload ssh. Keys stop password guessing against this server. They do not protect a stolen unlocked key, so keep the firewall limited to the addresses you use.
If you also move SSH off port 22, follow the guide to change the SSH port safely so you keep a way back in. If you want a server to practise this on, a Linux VPS with full root SSH access lets you add your key and lock down password login yourself.
Generate SSH Keys on Windows and macOS
To generate SSH keys on Windows and macOS, use the same ssh-keygen command, because both ship the OpenSSH client.
Windows 10 and 11
Windows 10 and 11 run ssh-keygen -t ed25519 in PowerShell and save the pair in C:\Users\you\.ssh. If ssh is not recognized, check the OpenSSH Client feature state first in an administrator PowerShell window. This block shows the state and installs the client only when it is NotPresent. Open a new window afterwards.
$client = Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH.Client*'
$client
if ($client.State -eq 'NotPresent') {
Add-WindowsCapability -Online -Name $client.Name
}The Windows agent service is disabled by default. Setting its startup type needs an administrator window, and ssh-add then runs in your normal window. Get-Service should report Running.
Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent
Get-Service ssh-agent
ssh-add $env:USERPROFILE\.ssh\id_ed25519The Windows client has no ssh-copy-id, so pipe the key to a Linux server instead. This line follows the manual method above and was not run here. It does not fix modes on an .ssh folder that already exists, so if the key is refused, use the permission fix shown earlier on the server.
type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh deploy@203.0.113.10 "umask 077; mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"A Windows server works differently. Keys for members of the Administrators group go in C:\ProgramData\ssh\administrators_authorized_keys, which needs permissions for Administrators and SYSTEM only. Microsoft gives this command for it, run on the server.
icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"PuTTY and some WinSCP setups use their own .ppk key format. PuTTYgen can load an OpenSSH private key and save it as .ppk, and the server still needs the public key in authorized_keys. The built in Windows ssh command uses OpenSSH keys directly and needs no conversion.
macOS
On macOS, add the key to the Keychain so the passphrase is remembered across restarts.
ssh-add --apple-use-keychain ~/.ssh/id_ed25519Then add these lines to ~/.ssh/config so the key loads by itself. Before macOS Monterey 12 the flag was -K. Use the ssh-add that comes with macOS, because versions installed by package managers do not know the Keychain flags. These macOS steps follow the vendor documentation and were not run here.
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519SSH Key Login Troubleshooting
SSH key login troubleshooting starts with ssh -v on the client and the sshd log on the server.
| What you see | Likely cause | Fix |
|---|---|---|
| Password prompt instead of a key login | The key is not in authorized_keys or was not offered | Run ssh -v and check the Offering lines, then copy the key again |
| Permission denied (publickey) | Wrong user, wrong key or bad server modes | Check the user name, then the server log for bad ownership or modes |
| UNPROTECTED PRIVATE KEY FILE | The private key is readable by others | chmod 600 on the private key |
| Too many authentication failures | The agent offered too many keys | Use -i with -o IdentitiesOnly=yes |
| Skipping ssh-dss key | An old DSA key | Generate an Ed25519 key and copy it |
| Key still asks for the passphrase every time | No agent or the key is not loaded | Run ssh-add, or use the Keychain on macOS |
| The server accepts a different key than you expected | The agent or a config entry offered another key first | Run ssh -v, compare the SHA256 fingerprint, then use -i with IdentitiesOnly=yes |
| Works for one user but not root | Root login is limited by PermitRootLogin | Log in as a normal user and use sudo |
Questions people ask
How do I generate an SSH key?
Run ssh-keygen -t ed25519 -C "label" on your own computer, press Enter for the default file and set a passphrase.
What does ssh-copy-id do?
It logs in to the server once with your password and appends your public key to ~/.ssh/authorized_keys, creating the file if needed.
What does ssh -i do?
It tells ssh which private key file to use, for example ssh -i ~/.ssh/work_ed25519 user@host. You can give more than one.
Should I use Ed25519 or RSA?
Use Ed25519 for current servers. Use RSA with 4096 bits only when an older system or device does not accept Ed25519.
Do I need a passphrase on my SSH key?
It is strongly advised. It encrypts the key file, so a copied file cannot be used without it, and an agent saves you retyping it.
Which SSH key do I copy to the server?
Copy the public key, the file ending in .pub. The private key, with no extension, stays in ~/.ssh on your computer and is never shared.
Can I use the same SSH key on several servers?
Yes. Copy the same public key to each one. Use separate keys per device so you can remove one lost laptop without touching the rest.
Why does my server still ask for a password?
The key was not accepted. Check ssh -v, the user name, and the authorized_keys owner and modes in the server log.
Sources
- Ubuntu manual, ssh-keygen(1) for OpenSSH 9.6 on Ubuntu 24.04
- ssh-copy-id(1) Linux manual page
- Ubuntu manual, sshd(8) files and authorized_keys format
- Ubuntu manual, sshd_config(5) StrictModes and MaxAuthTries
- Ubuntu manual, ssh_config(5) IdentitiesOnly and AddKeysToAgent
- Microsoft Learn, Get started with OpenSSH for Windows
- Microsoft Learn, Key based authentication in OpenSSH for Windows
- Microsoft Learn, OpenSSH for Windows overview
- GitHub Docs, Generating a new SSH key and adding it to the ssh-agent