新装系统,登录git服务器clone,突然报这个错误,以前从来没有碰到过,解决过程如下:
seaside@vmdev:~/csdn_git/mcp$ git clone git@gitcode.net:huyongfu2004/mcp.git
Cloning into 'mcp'...
/etc/ssh/ssh_config: line 54: Bad configuration option: permitrootlogin
/etc/ssh/ssh_config: terminating, 1 bad configuration options
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.打开配置文件:
sudo vim /etc/ssh/ssh_configpermitrootlogin这个配置应该 放到sshd_config(服务器段配置)中,ssh_config是客户端配置,找到最后一行,所以直接把这行去掉或者注释掉就OK了
# PermitRootLogin yes
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/hz/127232.html