Tools: How to Set Up Passwordless SSH Login with PuTTY.

Tools: How to Set Up Passwordless SSH Login with PuTTY.

What Is Passwordless SSH Login?

Step 1: Generate SSH Key Pair Using PuTTYgen

Steps:

Step 2: Add Public Key to Your VPS

Login to your VPS (last time using password)

Open authorized_keys file:

Paste your public key

Secure the file:

Step 3: Configure PuTTY for One-Click Login

Steps:

Result: One Click Login

Real-Life Scenario If you’ve ever logged into your VPS again and again using a password, you already know how repetitive and risky it can be. There’s a better way. In professional server environments, developers almost always use SSH key-based authentication instead of passwords. It’s faster, more secure, and honestly… once you set it up, you won’t want to go back. In this guide, I’ll walk you through how to set up passwordless SSH login using PuTTY in a simple, practical way. Think of it like this: Your server has a lock (public key), and your computer has the only matching key (private key) No password needed. Just instant access. First, we need to create two keys: Open PuTTYgen (comes with PuTTY) Under Parameters, select: Move your mouse randomly (this generates randomness) Now we tell the server: “This key is allowed to access you.” Now comes the fun part no more typing anything 😄 You’re instantly logged in. No password. No hassle. Let’s say you’re deploying a Laravel project from GitHub to your VPS. This is exactly how most production servers are managed in real-world teams. Setting up SSH key-based login might feel a bit technical at first but it’s one of those upgrades that pays off immediately. And honestly… once you start using it, typing passwords will feel outdated. Templates let you quickly answer FAQs or store snippets for re-use. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse

Code Block

Copy

Public key for pasting into OpenSSH authorized_keys file Public key for pasting into OpenSSH authorized_keys file Public key for pasting into OpenSSH authorized_keys file mkdir -p ~/.ssh chmod 700 ~/.ssh mkdir -p ~/.ssh chmod 700 ~/.ssh mkdir -p ~/.ssh chmod 700 ~/.ssh nano ~/.ssh/authorized_keys nano ~/.ssh/authorized_keys nano ~/.ssh/authorized_keys Ctrl + O → Enter → Ctrl + X Ctrl + O → Enter → Ctrl + X Ctrl + O → Enter → Ctrl + X chmod 600 ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys Connection → Data Connection → Data Connection → Data Auto-login username: your_username (e.g., root / ubuntu) Auto-login username: your_username (e.g., root / ubuntu) Connection → SSH → Auth → Credentials Connection → SSH → Auth → Credentials Connection → SSH → Auth → Credentials - Instead of typing a password every time - You use a private key file stored on your computer - The server verifies it using a public key - Private Key (.ppk) → stays on your PC - Public Key → goes to your server - Open PuTTYgen (comes with PuTTY) - Under Parameters, select: - Ed25519 (modern, faster, more secure than RSA) - Click Generate - Move your mouse randomly (this generates randomness) - Click Save private key - Save it somewhere safe (very important ⚠️) - Copy the public key from: - Right-click in PuTTY → it will paste automatically - Set: Auto-login username: your_username (e.g., root / ubuntu) - Select your .ppk file - Go back to: - Enter: Host Name (IP) Saved Session name (e.g., My Production VPS) - Host Name (IP) - Saved Session name (e.g., My Production VPS) - Host Name (IP) - Saved Session name (e.g., My Production VPS) - Double-click your saved session - Login with password every time - Risk of brute-force attacks - Slower CI/CD setup - Instant login using SSH key - Easy automation (GitHub Actions, scripts) - Much more secure - Better security - Faster access - Easier automation