How to add ssh key gen to azure repos

Avinash Reddy
Oct 31, 2023

--

First generate the public and private key from the host system by typing following command in the terminal

ssh-keygen

Enter the necessary details

Finally, You’ll see a message displaying

Your public key has been saved in <public-key-folder>.
The key fingerprint is:
SHA256:********************************************
The key's randomart image is:
+------------+
| |
| |
| |
| |
| |
| |
+------------+

copy the content in the <public-key-folder>

Click on the profile button in azure repos

Click on the profile settings button and then select SSH public keys

Add new key by clicking on the + New Key button, It will open a sidebar which accepts the public-key-content that you have copied. Give a appropriate name to refer to the host machine.

Now, clone the repository with the ssh

git clone git@ssh.dev.azure.com*******************

--

--

Avinash Reddy
Avinash Reddy

No responses yet