How to Generate SSH Key Pair and Access the Instance using Windows
Print
Created by: Keyur Panchal
Modified on: Sun, 27 Oct, 2024 at 6:18 PM
This article provides step-by-step instructions for generating an SSH key pair on Windows OS, uploading the public key to the console, creating an instance with that key, and accessing the instance.
Step 1: Open PowerShell
Click on the Start menu.
Type PowerShell, right-click on it, and select Run as administrator.
Step 2: Generate SSH Key Pair
Run the following command in PowerShell to create an SSH key pair:
When prompted to enter a file in which to save the key, you can press Enter to accept the default location (C:\Users\<YourUsername>\.ssh\).
You may also set a passphrase for added security or leave it empty.
Step 3: Locate the Generated Keys
By default, your keys will be saved in the 'C:\Users\<YourUsername>\.ssh\' directory. You should see two files:
id_ed25519 (your private key)
id_ed25519.pub (your public key)
Step 4: Upload Public Key to Console
To add a new SSH key, please follow these steps:
Open the console dashboard and click on 'Keys & Tokens' in the left sidebar.
In the 'SSH Keys' section, click on the 'Add new key' button located in the top-right corner of that section.
A new popup window will appear; here, you can enter your SSH Public Key, assign it a name, and then click on the 'Save' button to complete the process.
For more information on 'How to Upload SSH Public Keys' click here
Step 5: Create an Instance Using the Public Key
Please visit the given link for more information on how to create an instance:
Step 6: Access the Instance
To access the created instance using your private key, open a terminal on your local system and use the following command:
ssh ubuntu@<public_ip_address> |
Replace <public_ip_address> with the public IP address of your instance.
If everything is set up correctly, you should now have access to your instance.
To Generate SSH Keys and Access Instance on Linux/macOS, Click here.
Keyur is the author of this solution article.
Did you find it helpful?
Yes
No
Send feedback Sorry we couldn't be helpful. Help us improve this article with your feedback.