The following steps outline how to set up SSH access from a Cloud9 environment to Azure DevOps.

Use the ssh-keygen command to create a new RSA key pair, using your specific email as a comment for identification. Then, display the public key content.

ssh-keygen -t rsa -b 4096 -C "your-email@your-domain.net"
cat ~/.ssh/id_rsa.pub

Copy the output from the previous command (cat ~/.ssh/id_rsa.pub) and add it to the profile settings in Azure DevOps.

On Azure: Navigate to “SSH public keys” → Add key → Paste the SSH key copied in the previous step.

Set the local Git repository’s origin remote to use the SSH URL provided by Azure DevOps for the repository.

git remote set-url origin git@ssh.dev.azure.com:v3/organization/project/repository

Ensure the SSH agent is running and load your private key into it so that Git can use it for secure authentication during push/pull operations.

eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa