How to Connect to the Server Using SSH Keys on Windows 10 (Using Putty) (2024)

How to Connect to the Server Using SSH Keys on Windows 10 (Using Putty) (1)

The guide will familiarise you with steps to connect to a cloud server using SSH keys on a computer that runs on windows 10 (using PuTTY).

OVERVIEW

SSH is an encrypted connection protocol that allows secure sign-ins over an unsecured network. The protocol handles authentication through a combination of public keys and private keys. These keys build trust between the client and the server while eliminating the need of a password during authentication.

In addition, you can protect your underground information from getting into the wrong hands by adding a passphrase to the private key which enhances the level of security.

It is essential to know that the PuTTYSSH client for Microsoft Windows 10 does not share the same key format as OpenSSH client. Therefore, it is necessary to either generate a new public or private key using PuTTYgen tool or convert an already existing OpenSSH private key to connect to the server.

PREREQUISITES

  • PuTTY SSH Client for Microsoft Windows
  • Remote server accessible over OpenSSH

STEP1: Install PuTTY and PuTTYgen

To create and use SSH keys on Windows, you need to download and install both- PuTTY - to connect to the remote server through SSH and PuTTYgen - to create SSH keys in the first place. Both are required to convert OpenSSH keys and connect to the server over SSH.

To download these two tools, you have a choice - either download them individually or, preferably, as a Windows Installer from the PuTTY Download Page.

Once you have successfully downloaded the PuTTY Window Installer, double-click the executable in the Download folder and follow the installation process. Set settings to default.

STEP2: Use existing Public and Private Keys

If you use existing public or private keys, copy the “id_rsa” key to your Windows desktop. This can either be done by,

  1. Copying and pasting the contents of the file or
  2. Using a SCP client such as PSCP, which helps to transfer file securely between computer using SSH. PSCP is provided with the PuTTY install or FileZilla.

Follow the steps to connect to the server;

  1. Launch PuTTYgen from Windows Programs List.
  2. Click Conversions” from the PuTTY key Generator Menu and select “Import key”.
  3. Navigate to the Open SSH private key and click on Open”.
  4. Under“Actions”you will see an option Save the generated key”, click on Save private key”.
  5. To secure the private key, select an “Optional” passphrase.
  6. Save the private key to the desktop as ppk”.

If the public key is already attached to the authorized_keys” file on the remote SSH server, then proceed to “Connect to Server with Private Key”.

Otherwise, proceed to “Copy Public Key to Server”.

STEP3: Generate New Public and Private Keys

Follow the steps after launching PuTTYgen from the Windows Programs List:

  1. Under Parameters” section, increase the Number of bits in a generated key:” to a minimum value of 2048.
  2. Below Actions”section, click on Generate”.
  3. To generate the private key, you will be instructed to move the cursor around within the PuTTY Key Generator window.
  4. Once the important information appears, click Save private key” under Actions” section.
  5. Save the private key to the desktop as ppk”.
  6. The Public Key is set in the box under Public key for pasting into OpenSSH authorized_keys file:”

STEP4: Copy Public Key to server

  1. To locate the OpenSSH public key, select “Key > Key Public key for pasting into OpenSSH authorized_keys file”. The public key begins with SSH RSA key pairing followed by a string of characters.
  2. Highlight the entire public key within the PuTTY Key Generator and copy the highlighted text.
  3. Launch PuTTY and login to the remote server with your existing username and password.
  4. Use your preferred text editor to create and/or open the authorized_keys” file.
  5. Paste the public key into the authorized_keys” file.
  6. Save the file and close the text editor.
  7. Adjust the permission of the authorized_keys” file so that the file does not allow group written permissions.
  8. Log out of the remote server.

STEP5: Connect to server with Private Key

These steps will test your SSH key authentication and connect you to the server. Close the PuTTYgen tool and launch PuTTY again.

  1. Type the remote server Host Name or IP address under Session”.
  2. Navigate to “Connection>SSH>Auth”.
  3. Click on “..”.
  4. Locate the ppk” private key. Click Open”.
  5. Lastly, to log in to the remote server with key pair authentication, click on Open” again to connect.

The first time you try to connect to a server, you will see a security alert popup on your desktop. This popup appears because you haven’t previously connected to this server. So, just click on OK” and proceed.

However, if you see any security alert or warning in future after already having connected to the server once, probability is your administrator has changed the keys or someone is trying to connect you to a malicious SSH server.

Back to news
How to Connect to the Server Using SSH Keys on Windows 10 (Using Putty) (2024)
Top Articles
A quarter of developers left crypto — but here’s why that’s not a bad thing
Preferred Stock
$4,500,000 - 645 Matanzas CT, Fort Myers Beach, FL, 33931, William Raveis Real Estate, Mortgage, and Insurance
Foxy Roxxie Coomer
How To Fix Epson Printer Error Code 0x9e
Gomoviesmalayalam
Greedfall Console Commands
Online Reading Resources for Students & Teachers | Raz-Kids
Trade Chart Dave Richard
Ogeechee Tech Blackboard
The Haunted Drury Hotels of San Antonio’s Riverwalk
Progressbook Brunswick
Culvers Tartar Sauce
The Murdoch succession drama kicks off this week. Here's everything you need to know
978-0137606801
Used Drum Kits Ebay
Cashtapp Atm Near Me
Aldine Isd Pay Scale 23-24
Zack Fairhurst Snapchat
The Blind Showtimes Near Amc Merchants Crossing 16
Breckie Hill Mega Link
Puss In Boots: The Last Wish Showtimes Near Cinépolis Vista
2021 Volleyball Roster
Hannaford Weekly Flyer Manchester Nh
Cb2 South Coast Plaza
Papa Johns Mear Me
John Deere 44 Snowblower Parts Manual
lol Did he score on me ?
My Dog Ate A 5Mg Flexeril
Ofw Pinoy Channel Su
Moonrise Time Tonight Near Me
15 Downer Way, Crosswicks, NJ 08515 - MLS NJBL2072416 - Coldwell Banker
Iban's staff
AsROck Q1900B ITX und Ramverträglichkeit
Ewwwww Gif
Bay Focus
Chuze Fitness La Verne Reviews
Claim loopt uit op pr-drama voor Hohenzollern
Ticket To Paradise Showtimes Near Regal Citrus Park
Ferguson Employee Pipeline
Letter of Credit: What It Is, Examples, and How One Is Used
About My Father Showtimes Near Amc Rockford 16
Hazel Moore Boobpedia
Payrollservers.us Webclock
Ups Authorized Shipping Provider Price Photos
Florida Lottery Powerball Double Play
Legs Gifs
Ronnie Mcnu*t Uncensored
Denys Davydov - Wikitia
Bumgarner Funeral Home Troy Nc Obituaries
Craigslist Yard Sales In Murrells Inlet
Latest Posts
Article information

Author: Domingo Moore

Last Updated:

Views: 6445

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.