.pub
file (~/.ssh/id_rsa.pub)ssh
command within the Command Prompt (Windows 10 build version 1803 and later), please follow the Mac/Linux directions above. If not,continue with the directions below.PuTTYgen
program. You can download PuttyGen
here: PuttyGen Download Page,scroll down until you see the puttygen.exe
file..pub
file into the 'SSH Public Key' text box.The expected key is a single line, with three fields looking something likessh-rsa ASSFFSAF.. user@host
. If you used the first set of key-generatinginstructions it is the content of ~/.ssh/id_rsa.pub
and for the second (usingPuTTYgen), it is the content from step 7 above.PutTTY
program. If necessary, you can download PuTTY from the website here PuTTY download page.title | description | services | documentationcenter | author | manager | editor | tags | ms.assetid | ms.service | ms.workload | ms.tgt_pltfrm | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn how to generate and use SSH keys on a Windows computer to connect to a Linux virtual machine on Azure. | gwallace | azure-service-management,azure-resource-manager | virtual-machines-linux | vm-linux | 11/26/2018 |
ssh-keygen
) or a GUI tool (PuTTYgen). Also note, when using Powershell to create a key, upload the public key as ssh.com(SECSH) format. When using CLI, convert the key into OpenSSH format prior to uploading.ssh-keygen
command. Type the following command, and answer the prompts. If an SSH key pair exists in the chosen location, those files are overwritten.ssh-keygen
.