关于阿里云code配置git的问题

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/'

转载于:https://my.oschina.net/huibaifa/blog/1805485

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值