How to Connect to Linux Servers via SSH Keys (.PPK / PEM) and Pageant in WinSCP
Convert OpenSSH private keys with PuTTYgen, load keys into Pageant for passwordless SFTP logins, and configure sudo root elevation on Ubuntu/Debian VPS hosts.
Convert OpenSSH private keys with PuTTYgen, load keys into Pageant for passwordless SFTP logins, and configure sudo root elevation on Ubuntu/Debian VPS hosts.
Convert OpenSSH private keys with PuTTYgen, load keys into Pageant for passwordless SFTP logins, and configure sudo root elevation on Ubuntu/Debian VPS hosts. This module is built directly into the core WinSCP.exe (GUI) and WinSCP.com (CLI Scripting) binary included in our 11.6 MB standalone Windows installer and Portable USB edition — requiring zero external paid plugins or cloud uploads.
C:\Program Files (x86)\WinSCP\WinSCP.exe (GUI) and WinSCP.com (CLI Scripting) · Config stored in Registry (HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2) or WinSCP.ini (Portable Mode) · RAM working set: 58 MB (during 4-queue parallel SFTP transfer).
SFTP, enter your Linux server IP and port (22), and click Advanced....... next to Private key file.*.ppk; *.pem)** and select your OpenSSH id_ed25519 or AWS .pem key — WinSCP automatically converts it into PuTTY v3 .ppk format./etc/nginx/) when logging in as ubuntu, go to Advanced -> Environment -> SFTP and set SFTP server to sudo /usr/lib/openssh/sftp-server.| Mode / Option in WinSCP | Recommended Parameter | Engineering & Workflow Benefit |
|---|---|---|
| Ed25519 & RSA-4096 Keys | PuTTY v3 `.ppk` (Argon2 KDF) | Automatic 1-click conversion from OpenSSH .pem / id_ed25519 |
| Pageant SSH Agent Integration | Single passphrase unlock in tray | Shares unlocked SSH keys across WinSCP, PuTTY, and Git |
| Sudo SFTP Elevation | `sudo /usr/lib/openssh/sftp-server` | Edit /etc/ and /var/www/ without enabling direct root SSH login |
| SSH Hostkey Fingerprint Verify | SHA-256 `ssh-ed25519` verification | Prevents Man-in-the-Middle (MITM) spoofing on first connection |
Speed up your daily SFTP SSH Key Auth (.PPK / PEM & Pageant) workflow using these built-in hotkeys, or automate batch runs from PowerShell via WinSCP.com /command "open sftp://user@host/ -hostkey=*" "synchronize remote C:\Local /var/www" "exit":
| Shortcut | Action in WinSCP v6.3.5 |
|---|---|
Ctrl + U | Keep Remote Directory Up to Date (live file-watcher auto-uploads on local save) |
Ctrl + S | Synchronize Local and Remote Directories (preview file diffs by timestamp or size) |
Ctrl + P | Open active SFTP session directly inside a PuTTY SSH terminal without re-entering password |
Ctrl + Alt + P (Preferences) | Configure External Editor (VS Code / Notepad++), SSH Ciphers, and INI Portability |
Related tutorials: explore Speed Optimization: Parallel Queues & Ciphers, Directory Sync & 'Keep Remote Up to Date', or visit our WinSCP Troubleshooting Guide if you hit any OS permission prompts.
Yes. All 7 core modules including SFTP SSH Key Auth (.PPK / PEM & Pageant) are 100% free in WinSCP v6.3.5 with no trial limits.
Yes. The Portable USB build includes the exact same SFTP SSH Key Auth (.PPK / PEM & Pageant) engine and saves your presets locally on the flash drive.
Presets are stored in Registry (HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2) or WinSCP.ini (Portable Mode) (or inside the application directory in Portable mode).
Explore all 20 verified setup tutorials, module walkthroughs, and troubleshooting guides for WinSCP on Windows, macOS, and Linux.