win10系统的电脑,
1、安装git,详情请参考http://www.runoob.com/git/git-install-setup.html
2、配置电脑的ssh,使用git bash,
输入ssh-keygen -t rsa -C "xxxxxx@yy.com" #建议填写自己真实有效的邮箱地址
回车后会出现
Generating public/private rsa key pair
Enter file in which to save the key (/c/Users/xxxx_000/.ssh/id_rsa): #不填直接回车
Enter passphrase (empty for no passphrase): #输入密码(可以为空)
Enter same passphrase again: #再次确认密码(可以为空)
Your identification has been saved in /c/Users/xxxx_000/.ssh/id_rsa. #生成的密钥
Your public key has been saved in /c/Users/xxxx_000/.ssh/id_rsa.pub. #生成的公钥
3、本机已完成ssh key设置,其存放路径为:c:/Users/xxxx_000/.ssh/下。
例如:C:\Users\huiheifa\.ssh
记事本打开文件id_rsa.pub
复制文件内容
4、将ssh key到阿里云code
在目录profile下的sshkeys里点击add sshkey,粘贴id_rsa.pub
5、修改profile下的password
具体原因暂时还不清楚,如果不修改,clone代码,输入账号密码时会报错
例如:fatal: Authentication failed for 'https://code.aliyun.com/1527383574/codes.git/'