PermitRootLogin 问题解决

PermitRootLogin 问题解决,第1张

PermitRootLogin 问题解决

新装系统,登录git服务器clone,突然报这个错误,以前从来没有碰到过,解决过程如下:

seaside@vmdev:~/csdn_git/mcp$ git clone [email protected]: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_config

permitrootlogin这个配置应该 放到sshd_config(服务器段配置)中,ssh_config是客户端配置,找到最后一行,所以直接把这行去掉或者注释掉就OK了

# PermitRootLogin yes

 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5694180.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存