赞
踩
ssh pull操作总是提示:git@gitlab.xxx.com’s password:
Administrator@DE ~
$ ssh-add ~/.ssh/XXX
Could not open a connection to your authentication agent.
Administrator@DE ~
$ ssh-agent bash
Administrator@DE ~
$ ssh-add ~/.ssh/XXX
Identity added: /home/Administrator/.ssh/XXX (XXX)
XXX为你自己的私钥文件名
使用以上命令,只能对当前环境生效,重启或新开终端会继续提示输入密码
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。