赞
踩
加入公钥的过程是这样的:
(Python3.6) appleyuchi@Desktop:~$ cd ~/.ssh
(Python3.6) appleyuchi@Desktop:.ssh$ ls
authorized_keys id_rsa id_rsa.pub known_hosts
------------------------------------------------------------------------------------------------
id_rsa.pub 里面的内容拷贝到
然后发现每次push和clone都特么需要账户和密码.
------------------------------------------------------------------------------------------------
解决方案:
选择SSH,然后git clone
不要一路回车,注意:
------------------------------------------------------------------------------------------------
请手动输入yes, 不要直接回车
------------------------------------------------------------------------------------------------
git config --global credential.helper store
Reference:
[1]问题解决 - git/gitee 克隆(clone)远程仓库后,已增加SSH公钥还是每次都需要输入用户名密码
[2]Host key verification failed. fatal: Could not read from remote repository._年轻即出发的博客-CSDN博客
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。