Git 安装 fatal: unrecognized command “/home/git/bin/gitolite-shell id_rsa“
2023-09-11 14:16:58 时间
2、错误2 上面的问题解决了,但是执行 git clone YourGitName@YourIP:gitolite-admin 还是报错,fatal: unrecognized command “/usr/share/gitolite/gl-auth-command admin"
这个命令找不到?直接在linux里面敲入,发现可以啊,又是什么鬼问题?尝试了很久,找了很多文档,以为是配置问题,其实还是安装git时候的遗留问题。 因为这个用户被设置不能登入,不能登入就是不能执行命令。 为什么不能登入,还记得安装git服务的时候那文章千篇一律的说:为了保证安全,将 /etc/passwd/中git用户登录改为 /usr/bin/git-shell 原本是 /bin/bash 这对gitolite来说就是一个坑,千万别跳进去。我跳了,你们别跳,特意记下来,改回原来的,一切ok!
fatal: unrecognized command '/home/git/bin/gitolite-shell id_rsa'
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
测试了按照上面的方法修改之后还是一样的错误。
使用下面方法解决了:应该是禁用git用户登录
sudo passwd -d git
相关文章
- Centos6.8搭建Git服务(git版本可选)
- [GIT] Git 工作流程(Git flow, Github flow flow, Git lab flow)
- 教程-EhLib70的安装方法
- npm install —— 从一个简单例子,看本地安装与全局安装的区别
- Hive的安装部署
- Redis for Windows(C#缓存)安装和使用
- 【学习总结】Git学习-GIT工作流-千峰教育(来自B站)
- [Git] A better git process
- [Practical Git] Configure global settings with git config
- [Practical Git] Compare file changes with git diff
- [Practical Git] Navigate git command pager output with Unix less commands
- 在Linux上安装Git
- [Practical Git] Configure global settings with git config
- [Practical Git] Diagnose which commit broke something with git bisect
- [Practical Git] Filter commit history with git log arguments
- 详解Git工作区、暂存区、历史记录区以及git reset、git revert、git checkout等撤销命令的区别
- Linux--YUM 安装 nginx php mysql
- VS2019安装和使用教程(超详细)
- 如何在 Ubuntu 上安装和配置 Redis
- 重要, 要播放音乐视频等多媒体: 安装fedora23中的多媒体编码器
- 使用NB Exploit Kit攻击的APT样本分析——直接看流程图,就是网页挂马,利用java和flash等漏洞来在你主机安装和运行恶意软件
- Centos7上安装docker
- Git知识总览(四) git分支管理之rebase 以及 cherry-pick相关操作
- 【Git技巧】第八篇 git历史提交版本回退(可切换任意已经提交的版本)
- Hbase安装
- MongoDB数据库安装部署及警告优化
- Ceph 安装部署
- 最小化自动安装的Centos7修改完整中文显示
- iSH ssh 安装