PuTTY Complete Guide: SSH, Serial, and Session Management
What is PuTTY?
PuTTY is a free, open-source terminal emulator and SSH client for Windows. It supports SSH, Telnet, Serial (COM port), and raw socket connections. Despite Windows now having a built-in SSH client, PuTTY remains popular for its session management and serial console capabilities.
Downloading and Installing
PuTTY is a portable application—no installation required. Download the appropriate version and run it directly.
✅ Download from Official Source
Always download from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html. Avoid third-party sites which may bundle malware.
Included Tools
- PuTTY.exe – The main terminal client
- PuTTYgen.exe – SSH key generator (creates .ppk key files)
- Pageant.exe – SSH authentication agent (manages keys in memory)
- PSFTP.exe – Command-line SFTP client
- PSCP.exe – Command-line SCP client
Connecting via SSH
SSH is the most common use case for PuTTY—connecting to Linux servers, network devices, and cloud instances.
- Open PuTTY. In the "Session" category, enter the Host Name (IP address or hostname).
- Ensure Port is set to
22and Connection type is SSH. - (Optional) Enter a name under "Saved Sessions" and click Save to store for later.
- Click Open. Accept the host key fingerprint on first connect.
- Enter your username and password (or use key-based authentication).
Connecting via Serial Console
To connect to network devices via a console cable, use PuTTY's Serial connection type.
- Connect your console cable to the device and your PC's USB port.
- In Device Manager, find the assigned COM port (e.g.,
COM3). - In PuTTY, select Connection type: Serial.
- Enter the COM port in "Serial line" (e.g.,
COM3). - Set "Speed" to
9600(standard for most devices). - Click Open. Press Enter to wake the console.
Standard Serial Settings
| Parameter | Value |
|---|---|
| Speed (Baud) | 9600 |
| Data bits | 8 |
| Stop bits | 1 |
| Parity | None |
| Flow control | None |
In PuTTY, these are set under Connection > Serial.
Using SSH Keys with PuTTY
SSH keys are more secure than passwords. PuTTY uses its own .ppk key format, generated with PuTTYgen.
Generating a Key with PuTTYgen
- Open PuTTYgen.
- Select key type EdDSA (Ed25519) for modern security.
- Click Generate and move your mouse randomly over the window.
- Enter a Key passphrase (optional but recommended).
- Click Save private key to save the
.ppkfile. - Copy the text from "Public key for pasting..." and add it to your server's
~/.ssh/authorized_keys.
Using the Key in PuTTY
- In PuTTY, go to Connection > SSH > Auth > Credentials.
- Under "Private key file for authentication", click Browse and select your
.ppkfile. - Go back to Session, enter the Host Name, save the session, and connect.
Useful PuTTY Settings
Session Logging
Automatically save a transcript of your session for auditing or documentation.
Location: Session > Logging
Keep-Alive (Prevent Timeout)
Send packets to prevent firewalls from dropping idle connections.
Location: Connection > "Seconds between keepalives" = 60
Change Default Font
The default font is small. Use Consolas 12pt for better readability.
Location: Window > Appearance > Font settings
Increase Scrollback Buffer
Default is 2000 lines. Increase for long configuration outputs.
Location: Window > "Lines of scrollback" = 10000
Alternatives to PuTTY
While PuTTY is a classic, there are modern alternatives worth considering:
-
🪟
Windows Terminal + OpenSSH: Built into Windows 10/11. Just run
ssh user@hostfrom PowerShell. No .ppk files—uses standard OpenSSH key format. -
📱
SecureCRT: Commercial, feature-rich. Excellent for managing hundreds of sessions with tabs, scripting, and synchronization.
-
🆓
MobaXterm: Free personal edition. Includes SSH, serial, X11 forwarding, and a built-in file browser.
Was this article helpful?