OpenMediaVault 搭建git,ssh无法连接问题

简介: /************************************************************************* * OpenMediaVault 搭建git,ssh无法连接问题 * 说明: * 在使用OpenMediaVault搭建git服务器,ssh总是无法访问,最后找到了原因。
/*************************************************************************
 *              OpenMediaVault 搭建git,ssh无法连接问题
 * 说明:
 *     在使用OpenMediaVault搭建git服务器,ssh总是无法访问,最后找到了原因。
 *
 *                                     2016-7-8 深圳 南山平山村 曾剑锋
 ************************************************************************/

一、ssh 连接错误:
    The server has disconnected with an error. Server message reads:
    A protocol error occurred. Change of username or service not allowed:(root, ssh-connection)->(git,ssh-connection)

二、原因:
    cat etc/ssh/sshd_config 
        ......
        AllowGroups root sh
        ......

三、解决办法:
    OpenMediaVault Web 管理界面给账户分配到对应root或者sh组。

 

目录
打赏
0
0
0
0
12
分享
相关文章
git使用之如何将一套代码同时推送至github|gitee|gitcode|gitlab等多个仓库-含添加ssh-优雅草央千澈完美解决-提供整体提交代码
git使用之如何将一套代码同时推送至github|gitee|gitcode|gitlab等多个仓库-含添加ssh-优雅草央千澈完美解决-提供整体提交代码
98 16
git使用之如何将一套代码同时推送至github|gitee|gitcode|gitlab等多个仓库-含添加ssh-优雅草央千澈完美解决-提供整体提交代码
使用git克隆仓库报错:Warning: Permanently added‘github.com’ to the .....(ssh )
所以,你可以安全地忽略这个警告,它不会影响到你使用git克隆仓库。如果你已经成功克隆了仓库,那么一切都在正常工作。如果你在克隆过程中遇到其他问题,那可能需要查看具体的错误信息来解决。
296 0
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效
2593 1
高版本SSH无法连接问题排查过程
【6月更文挑战第21天】高版本SSH无法连接问题排查过程
357 0
【GIT】GitHub添加ssh密钥
【GIT】GitHub添加ssh密钥
99 0
Git 安全远程访问:SSH 密钥对生成、添加和连接步骤解析
SSH(Secure Shell)是一种用于安全远程访问的协议,它提供了加密通信和身份验证机制。在使用 SSH 连接到远程 Git 存储库时,您可以使用 SSH 密钥对来确保安全性。以下是关于如何生成和使用 SSH 密钥对的详细步骤: 生成 SSH 密钥对
539 2
【Git】TortoiseGit(小乌龟)配置SSH和使用
【Git】TortoiseGit(小乌龟)配置SSH和使用
763 0
Linux【问题记录 04】SSH突然无法连接排查2个小时最终解决Failed to start OpenSSH server daemon及阿里云服务器的 kdevtmpfsi 挖矿病毒处理
Linux【问题记录 04】SSH突然无法连接排查2个小时最终解决Failed to start OpenSSH server daemon及阿里云服务器的 kdevtmpfsi 挖矿病毒处理
581 0
Git的GUI图形化工具&ssh协议&IDEA集成Git
Git的GUI图形化工具&ssh协议&IDEA集成Git
304 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等