To SSH into your VPS from Windows using PuTTY, download and install PuTTY, enter your server's IP address or hostname in the Host Name field (port 22), click Open, then log in with your SSH username and password when prompted. This secure connection method lets you manage your VPS server remotely through a command-line interface.
What You'll Need Before Starting
Before connecting to your VPS via SSH, make sure you have the following information ready:
- Your VPS IP address or hostname (available in your OBHost client area)
- Your SSH username (typically "root" for VPS servers)
- Your SSH password (set during VPS setup or available in your control panel)
- PuTTY software installed on your Windows computer
Downloading and Installing PuTTY
PuTTY is a free, lightweight SSH client for Windows that provides secure remote access to your VPS. To get started, download PuTTY from the official website at putty.org. The download is a small executable file that doesn't require installation. Simply save the putty.exe file to a convenient location on your computer, such as your Desktop or Downloads folder.
For easier access in the future, consider creating a shortcut to PuTTY on your desktop or pinning it to your taskbar.
Step-by-Step Guide to Connect via SSH
Step 1: Launch PuTTY and Enter Server Details
Double-click the PuTTY executable to open the application. In the PuTTY Configuration window, you'll see a field labeled "Host Name (or IP address)". Enter your VPS IP address or hostname in this field. Leave the Port setting at 22, which is the default port for SSH connections. Make sure the Connection type is set to SSH.
Step 2: Initiate the Connection
Click the "Open" button at the bottom of the PuTTY Configuration window. A new black terminal window will appear. If this is your first time connecting to this server, you may see a security alert asking you to verify the server's host key. Click "Yes" to accept and continue.
Step 3: Enter Your Username
When the terminal window opens, you'll see a prompt that says "login as:". Type your SSH username (usually "root" for VPS servers) and press Enter on your keyboard. The cursor will move to the next line.
Step 4: Enter Your Password
After entering your username, you'll see a password prompt. Type your SSH password and press Enter. Note that the password won't be visible as you type for security reasons, so type carefully. If you enter the correct credentials, you'll be logged into your VPS server.
Step 5: Start Managing Your Server
Once logged in successfully, you'll see a command prompt where you can execute commands to manage your VPS. You now have full command-line access to your server and can perform administrative tasks, install software, configure settings, and manage files.
Troubleshooting Common SSH Connection Issues
Connection Timeout or Refused
If you see a "connection timed out" or "connection refused" error, verify that you're using the correct IP address or hostname. Check that your VPS is running and that port 22 isn't blocked by a firewall. You can verify your server status in your hosting control panel.
Incorrect Password or Access Denied
If you receive an "Access denied" message, double-check that you're using the correct username and password. Passwords are case-sensitive, so ensure your Caps Lock key isn't accidentally enabled. If you've forgotten your root password, you can reset it through your VPS control panel in your OBHost client area.
Host Key Verification Failed
This error typically occurs if your server's SSH key has changed, which might happen after a VPS reinstall. To resolve this, you'll need to remove the old key from PuTTY's cache. In PuTTY, this can be done by deleting the relevant entry from the registry or by using the PuTTY command-line tools.
Security Best Practices for SSH Access
To keep your VPS secure when using SSH, follow these important security practices:
- Use strong passwords: Create complex passwords with a mix of uppercase letters, lowercase letters, numbers, and special characters
- Change default ports: Consider changing SSH from port 22 to a non-standard port to reduce automated attacks
- Implement SSH keys: Use key-based authentication instead of passwords for enhanced security
- Disable root login: Create a regular user account and disable direct root login via SSH
- Keep software updated: Regularly update your VPS operating system and SSH server software
- Use a firewall: Configure iptables or another firewall to restrict SSH access to specific IP addresses if possible
Frequently Asked Questions
What should I do if I forgot my VPS root password?
If you've forgotten your root password, you can reset it from your VPS control panel in your hosting account. Log into your client area, navigate to your VPS management section, and look for the password reset option. After resetting, use the new password to connect via SSH.
Can I save my connection settings in PuTTY for future use?
Yes, PuTTY allows you to save connection profiles. After entering your server details in the configuration window, type a name in the "Saved Sessions" field and click the "Save" button. Next time you open PuTTY, you can simply select your saved session and click "Load" to retrieve your settings.
Is it safe to connect to my VPS using SSH over public Wi-Fi?
While SSH encrypts your connection, using public Wi-Fi networks adds risk. If you must connect from public Wi-Fi, consider using a VPN first to add an extra layer of security. SSH encryption protects your data in transit, but a VPN helps protect against man-in-the-middle attacks on untrusted networks.
Why can't I see my password when typing it in PuTTY?
This is a security feature, not a bug. SSH terminals don't display passwords as you type them to prevent shoulder surfing or accidental exposure on screen recordings. The system is still receiving your keystrokes even though nothing appears on screen. Type your password carefully and press Enter when finished.
If you need any assistance connecting to your VPS via SSH or have questions about your server access, our support team is available 24/7. Visit our contact page or email us at support@obhost.org for help.