栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

PermitRootLogin 问题解决

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

PermitRootLogin 问题解决

新装系统,登录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_config

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

# PermitRootLogin yes

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/693715.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号