forasp.cn
 在本地服务器配置单账号,多项目 ssh config 后,重启服务器 重新拉代码出现下面的错误:
 
ERROR: Repository not found.
fatal: 无法读取远程仓库。
 
通过测试连接github :ssh -T git@github.com 结果如下:
 
Hi xxx/xxxx! You've successfully authenticated, but GitHub does not provide shell access.
 
这个是因为 config 重启后没有生效,执行下面命令解决该问题
 
eval "$(ssh-agent -s)"
 
编辑  ~/.bashr,如果 是zsh shell  编辑 ~/.zshrc 文件 
 最后一行新增
eval "$(ssh-agent -s)"