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
TokenPocket’s TPExchange: How to Create an Account.
Impressions: Definition - Google Ads Help
Zabor Funeral Home Inc
Bashas Elearning
Missed Connections Inland Empire
Craigslist Cars And Trucks For Sale By Owner Indianapolis
T Mobile Rival Crossword Clue
How to know if a financial advisor is good?
Die Windows GDI+ (Teil 1)
Soap2Day Autoplay
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
Games Like Mythic Manor
Echat Fr Review Pc Retailer In Qatar Prestige Pc Providers – Alpha Marine Group
2 Corinthians 6 Nlt
Lancasterfire Live Incidents
How do I get into solitude sewers Restoring Order? - Gamers Wiki
Dirt Removal in Burnet, TX ~ Instant Upfront Pricing
Pay Boot Barn Credit Card
Race Karts For Sale Near Me
Metro Pcs.near Me
Epguides Strange New Worlds
Ein Blutbad wie kein anderes: Evil Dead Rise ist der Horrorfilm des Jahres
Bible Gateway passage: Revelation 3 - New Living Translation
R. Kelly Net Worth 2024: The King Of R&B's Rise And Fall
Galaxy Fold 4 im Test: Kauftipp trotz Nachfolger?
Tokyo Spa Memphis Reviews
Ou Football Brainiacs
Jackass Golf Cart Gif
Mosley Lane Candles
Khatrimmaza
2012 Street Glide Blue Book Value
Cross-Border Share Swaps Made Easier Through Amendments to India’s Foreign Exchange Regulations - Transatlantic Law International
Jefferson Parish Dump Wall Blvd
Hannibal Mo Craigslist Pets
Ksu Sturgis Library
159R Bus Schedule Pdf
Sam's Club Gas Prices Deptford Nj
Craigslist Freeport Illinois
Clima De 10 Días Para 60120
Birmingham City Schools Clever Login
Pekin Soccer Tournament
Centimeters to Feet conversion: cm to ft calculator
Gas Buddy Il
Theatervoorstellingen in Nieuwegein, het complete aanbod.
300+ Unique Hair Salon Names 2024
Germany’s intensely private and immensely wealthy Reimann family
Publix Store 840
Roller Znen ZN50QT-E
Superecchll
Hkx File Compatibility Check Skyrim/Sse
Koniec veľkorysých plánov. Prestížna LEAF Academy mení adresu, masívny kampus nepostaví
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.