Using Pageant with PuTTY for Passphrase‑less SSH Authentication
Learn how to configure PuTTY to obtain SSH private keys automatically from the Pageant agent, eliminating repeated passphrase prompts while understanding the requirements and pitfalls.
17 Jun 2026, 12:10 UTC

Enable Pageant integration in PuTTY so the agent supplies your SSH private key automatically, eliminating the need to type a passphrase each time you connect.
How Pageant works with PuTTY
Pageant is a lightweight SSH authentication agent that holds decrypted private keys in memory. When PuTTY starts a session, it can query Pageant for a matching key if the option Attempt authentication using Pageant is enabled. The agent responds with the key, and PuTTY uses it to authenticate with the remote SSH server. This interaction occurs entirely on the Windows host; no key material is written to disk during the session.
Worked configuration example
- Start Pageant: Run
pageant.exefrom the PuTTY installation folder. No administrative rights are required; the program runs in the user context and places an icon in the system tray. - Load a key: Right‑click the Pageant tray icon, select Add Key, browse to your PuTTY‑format private key (
your_key.ppk), enter the passphrase when prompted, and confirm the key appears in the Pageant list. - Configure PuTTY: Open PuTTY, load or create a session (e.g.,
MySession). Navigate toConnection → SSH → Authand check Attempt authentication using Pageant. Optionally enable Allow agent forwarding if you need the key to be usable on the remote host. - Save the session: Return to the
Sessionpane, enter a name inSaved Sessions, and click Save. - Launch the connection: Click Open (or run
putty -load "MySession"from a Command Prompt). PuTTY will contact Pageant, retrieve the key, and authenticate without prompting for a password or passphrase.
Limits and common mistakes
- Pageant must be running first: If Pageant is not started before PuTTY launches, the agent cannot supply a key and PuTTY falls back to password authentication or aborts with "No supported authentication methods available".
- Key format: Pageant only understands PuTTY's
.ppkformat. OpenSSH keys must be converted withputtygen(puttygen openssh_key -o key.ppk) before loading. - Agent forwarding scope: Enabling forwarding sends the decrypted key to the remote host's SSH agent. Verify that the remote
sshd_configallowsAllowAgentForwarding yes; otherwise the forwarding request is ignored. - Windows‑only: Pageant is a Windows utility. On Linux or macOS you would use
ssh-agentinstead; PuTTY builds for those platforms do not integrate with Pageant. - Memory exposure: Keys reside in RAM while Pageant runs. A compromised host could potentially read them via debugging tools. Consider locking your workstation or using a hardware token for higher security.
Verification steps
- Confirm the Pageant icon appears in the system tray and shows the loaded key when you open its list.
- In PuTTY, open the session, go to
View → Event Logafter connecting. A successful authentication logs a line similar toAuthentication succeeded (publickey). - Run the session from the command line:
putty -load "MySession". Observe that no password or passphrase prompt appears. - If you enabled agent forwarding, on the remote host run
ssh-add -l(if an agent is present) to see whether the key was forwarded.
Security considerations
While Pageant removes the inconvenience of repeated passphrase entry, it does not eliminate the need to protect the private key. Ensure the workstation is kept up‑to‑date, use full‑disk encryption, and consider limiting Pageant's runtime to only when needed (e.g., start it manually, load the key, and exit after work).
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.