Connecting via SSH from Windows with PuTTY Guide
Connecting via SSH from Windows with PuTTY Guide
PuTTY is the most popular SSH client for Windows. Although Windows 10 and 11 also have a built-in SSH client, PuTTY remains an excellent choice due to its extra features and user-friendliness. Many customers at Theory7 use PuTTY for server management. In this guide, we explain how to install and use PuTTY.
Downloading and Installing PuTTY
Download
- Go to the official website: putty.org
- Click on Download PuTTY
- Choose the installer for your Windows version (64-bit for most systems)
- Download the MSI installer
Installation
- Double-click the downloaded file
- Follow the installation wizard
- Accept the default settings
- Click Install
PuTTY also installs PuTTYgen (for SSH keys) and Pageant (for key management).
Making Your First SSH Connection
Step 1: Open PuTTY
Start PuTTY via the Start menu or search for PuTTY.
Step 2: Configure Session
In the PuTTY configuration window:
- Host Name (or IP address): Enter your server hostname or IP
- Example: jouwdomein.nl or 123.45.67.89
- Port: Enter the SSH port
- At Theory7: 7777 (not the default 22)
- Connection type: Select SSH
Step 3: Connect
- Click Open
- On the first connection, a security alert about the server key will appear
- Click Accept to save the key
- Enter your username
- Enter your password
You are now connected to your server.
Saving the Session
To avoid filling everything in again:
- Configure your session (hostname, port, etc.)
- Type a name in Saved Sessions
- Click Save
Later, you can load the session and connect directly.
Using SSH Keys with PuTTY
SSH keys are more secure than passwords. PuTTY uses its own key format (.ppk).
Generating SSH Key with PuTTYgen
- Start PuTTYgen (installed with PuTTY)
- Choose key type: EdDSA (Ed25519) recommended
- Click Generate
- Move your mouse over the window for randomness
- Optional: enter a passphrase for extra security
- Click Save private key - keep this file safe
- Copy the public key from the text field
Uploading the Public Key
The public key needs to be uploaded to your server:
- Log in to DirectAdmin
- Go to SSH Keys
- Click Import Key
- Paste the public key
- Click Submit and Authorize
Connecting with SSH Key
- Open PuTTY
- Go to Connection > SSH > Auth > Credentials
- Under Private key file for authentication: select your .ppk file
- Go back to Session
- Fill in hostname and port
- Save the session
- Click Open
Pageant for Key Management
Pageant keeps your keys loaded so you don't have to enter the password every time:
- Start Pageant (appears in the systray)
- Double-click the Pageant icon
- Click Add Key
- Select your .ppk file
- Enter your passphrase (one-time)
As long as Pageant is running, your keys will be used automatically.
Useful PuTTY Settings
Activating Keepalives
Prevent connections from being dropped:
- Go to Connection
- Set Seconds between keepalives to 60
Adjusting Window Size
- Go to Window
- Set Columns and Rows as desired
- Under Scrollback: increase Lines of scrollback to 10000
Changing Font
- Go to Window > Appearance
- Click Change next to Fonts
- Choose a font and size
File Transfer with PSCP and PSFTP
PuTTY also installs tools for file transfer.
PSCP (Secure Copy)
pscp -P 7777 lokaalbestand.txt user@server:/pad/naar/doel/
PSFTP (SFTP client)
psftp -P 7777 user@server
Troubleshooting
Connection refused
- Check if the port is correct (7777 at Theory7)
- Verify that the server is reachable
Access denied
- Check your username (case-sensitive)
- Verify your password or SSH key
- Check if the key is authorized
Network error: Connection timed out
- Firewall may be blocking the connection
- Try a different network
Related Articles
- Server backup strategy
- Cron jobs at server level
- PHP-FPM configuration
- Activate SSH access in DirectAdmin
Need Help?
We are here for you! Are you facing any issues or have questions? Our support team is happy to assist you personally. Send us a message via the ticket system - we usually respond within a few hours and are happy to help you.
0 van 0 vonden dit nuttig