SSH into the VM using PuTTY · SFTP Gateway Support (2024)

Discover the simple, secure, and affordable way to give SFTP users access to cloud storage locations. Get a 30-day free trial of SFTP Gateway. No credit card or commitment is required.

Overview

When you transfer files to Azure, you may need to SSH into your VM at some point for troubleshooting, server management or any other configuration that needs to be done on the server.

In this scenario, to connect to your Linux VM over SSH from Windows, you can use PuTTY.

A common way to SSH into Linux is to use key-based authentication.This involves using a key pair:

  • Public key: This gets appended to /home/AzureUser/.ssh/authorized_keys (your admin username may vary)
  • Private key: This is a plaintext file stored on your workstation that you gives you access.

Refer to the Microsoft documentation for more details.

Installation

You can download PuTTY here.

Create a key pair

Although you will be using PuTTY to SSH into the VM, you generate a key pairusing PuTTYgen. This is what PuTTYgen looks like:

SSH into the VM using PuTTY · SFTP Gateway Support (1)

To generate a new key pair:

  1. Click Generate
  2. Follow the instructions (you will be asked to move your mouse to create randomness)
  3. Click Save public key
  4. Click Save private key

Set the public key when creating your VM

When you create a VM, you will see the following:

SSH into the VM using PuTTY · SFTP Gateway Support (2)

You can set SSH public key source to Use existing public key.

This will reveal a field named SSH public key.Paste the contents of your public key in this box.

Set the public key on an existing VM

If your VM already exists, you can still set the public key.

Under the VM details page, go to Reset password.

SSH into the VM using PuTTY · SFTP Gateway Support (3)

This page gives you the option to Reset SSH public key, and toset your SSH public key.

Note: Be careful not to select Reset configuration only, because this willwipe out the SFTP Gateway specific settings in the /etc/ssh/sshd_config file.

SSH into the VM using PuTTY

Once your public key is installed on the VM, you can finally SSH into the VM.

Open PuTTY:

SSH into the VM using PuTTY · SFTP Gateway Support (4)

  1. For Connection type, make sure the SSH radio button is selected.
  2. In the Host Name field, enter azureuser@<public ip> (your admin username and IP will vary)
  3. On the left, expand the SSH section, and click on Auth.
  4. Click on Browse to look for your private key (.PPK), and click Open.
  5. To launch the SSH session, click Open.

You should be prompted with the VM's host key, where you need to type yesto continue.

SSH attempt hangs and eventually times out

A common issue is that you will receive no feedback from the VM.

Chances are that the Network Security Group (NSG) does not have aningress rule for your workstation's public IP over TCP port 22.

Check to verify this ingress rule exists.

Check out our YouTube channel for how-to videos and additional assistance. For even more cloud computing news and tips, connect with us on LinkedIn and Twitter. Don't forget to sign up for your 30-day free trial of SFTP Gateway.

SSH into the VM using PuTTY · SFTP Gateway Support (2024)
Top Articles
Daily average UPI payments at new high in April - Times of India
Forex vs futures trading: what’s the difference?
Non Omnis Moriar: The Heartbreaking Haunting of Disneyland Paris' Phantom Manor - Park Lore
Bigbellybridget
Virtual Prepaid Minutes
Simone Kaulitz Age
Undead Asylum Part 2 - Dark Souls Guide - IGN
Hannah Slomowitz
Virginia Family Resort (Kallithea): Alle Infos zum Hotel
Kian And Jc Seatgeek Promo Code
The Exorcist: Believer Showtimes Near Movie Tavern Brannon Crossing
3466051968
Belly Dance Clackers Crossword
Gpa Calculator Georgia Tech
Hindilink4U.to
Victoria Tortilla & Tamales Factory Menu
Matt Severance Picks
Naughty Nails Southern Charms
Umbreon GX #SM36 Prices | Pokemon Promo
H1889 007 04 - Local Ppo
Candy Crush Saga: Impossible Levels - UXP2: Dark Patterns
فیلم پیشنهاد بی شرمانه دوبله فارسی نماشا بدون سانسور
Tamilyogi Movies Download 2022 Free Download
Lucky Dragon Net
Wrj Mugshots
High School Musical Star Sanborn Daily Themed Crossword
Yesterday's Tractors - Port Townsend, WA - 71 Reviews - Auto Repair in Port Townsend, WA - Birdeye
Company Search Subscription Service
Standard Bank Learnership Programme 2021
Michigan Medicine Vpn
'All good here' was 1 of the final texts sent from the doomed Titan submersible
The Front Porch Self Service
Holloway887
Theo Von Grantville
I Just Can't Wait to Be King
White Pages Houston
HarifSport - Bet Ethiopia
Peoplesgamezgiftexchange House Of Fun Coins
What Is Z Drive in Windows 10 and How to Remove It Safely?
Ron Martin Realty Cam
Branson Shooting Range
Walmart Beach Lunch Lounge Dress
7.5/8 As A Percent
Serenity Nail Salon Brentwood Tn
Tokyo Spa Memphis Reviews
First Lady Nails Patchogue
Tsc Boots Sale
Syrie Funeral Home Obituary
Quantum Break: Die Steamversion mit DirectX 11 im Technik-Test mit 15 Grafikkarten
Jelly Mario Unblocked 76
Mcdonalds Russell
Op zoek naar een hotel in San Francisco? DIT zijn de 9 leukste tips!
Latest Posts
Article information

Author: Lidia Grady

Last Updated:

Views: 5873

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.