git 连接Azure需要密码 电脑版发表于:2022/7/22 14:13  >#git 连接Azure需要密码 [TOC] tn2>众所周知,如果公钥认证失败,它会要求输入密码。 生成公钥 ```bash ssh-keygen -t rsa -C "cn49ak@inglasshrs.onmicrosoft.com" ``` tn2>复制`id_rsa.pub`文件的公钥,到Azure SSH public key中。  tn2>编辑`~/.ssh/config` ```bash Host vs-ssh.visualstudio.com User bob IdentityFile ~/.ssh/id_rsa IdentitiesOnly yes Host ssh.dev.azure.com User bob IdentityFile ~/.ssh/id_rsa IdentitiesOnly yes ``` tn2>再次尝试,就成功了