众所周知,如果公钥认证失败,它会要求输入密码。
生成公钥
ssh-keygen -t rsa -C "cddfv2@51dev.com"
复制id_rsa.pub
文件的公钥,到Azure SSH public key中。
编辑~/.ssh/config
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
再次尝试,就成功了