-
Notifications
You must be signed in to change notification settings - Fork 0
SSH
Gary Moore edited this page Dec 28, 2023
·
4 revisions
To generate a new SSH key, the following can be run from a bash window:
ssh-keygen -t rsa -b 2048
- Enter a suitable filename and location
- Specify a passphrase
After generating the SSH key pair, you need to add the public key to your Azure VM. You can do this through the Azure Portal.
- Go to your VM's page.
- Click on "Reset Password" section in the left hand panel.
- Choose the "Add SSH public key" option under "mode".
- Set the user name.
- Choose the "Use existing public key" option for "SSH Public Key source".
- Copy and paste the public key text into the "SSH public key" section.