Bad configuration options
自己创建git服务器,也不是第一次。但是很少,结果又出错了。
.ssh/config: line 2: Bad configuration option: host:106.xx.xx.35
.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.
反反复复回头,特别是注意权限设置需要修改?
git:x:502:502::/home/git:/bin/bash
git:x:502:502::/home/git:/usr/local/git/bin/git-shell
不能够一开始就改还是改成1000而不是502?因为一改就不能够加入公钥?但是root用户也可以吧?所以可能不需要在意。
https://www.cnblogs.com/mverting/p/10206532.html
四. 配置git
Git服务器打开RSA认证
vi /etc/ssh/sshd_config #以下项前面的#去掉
1.RSAAuthentication yes
2.PubkeyAuthentication yes
3.AuthorizedKeysFile .ssh/authorized_keys禁止Shell登录
vi /etc/passwd
git:x:502:502::/home/git:/bin/bash 修改成下面的 git的路径要设置成自己的
git:x:502:502::/home/git:/usr/local/git/bin/git-shell创建git用户组和用户
groupadd git
useradd git -g git
passwd git
su - git #切换到刚创建的git用户创建用户公钥文件
cd /home/git/
mkdir .ssh #新建文件夹
chmod 700 .ssh
touch .ssh/authorized_keys #新建文件
chmod 600 .ssh/authorized_keys
后续用户只需要向authorized_keys中添加自己的公钥五. 创建仓库及使用
1. cd /home/git #在某个文件夹下创建
git init --bare test.git #创建一个空仓库 仓库名字叫 test2. 本地克隆仓库git clone git@your-ip:test.git
最后什么问题?
因为我的config格式出错了:
网友说不能够有缩进,我没有,但是……阿里云说注意字符格式代码……一看:host一栏多了个冒号,本来是空格。
Bad configuration options相关推荐
- springboot No Java compiler available for configuration options compilerClassName
今天使用eclipse创建springboot整合jsp出现一个问题,在idea中并没有遇到这个问题.最后发现是需要在 eclipse中添加一个eclipse依赖,依赖如下:<dependenc ...
- Apache Tomcat Configuration Reference
http://www.jaxmao.org/tomcat-docs/config/index.html 概 述 print-friendly version Overview 这个手册包括可能被包括在 ...
- Creator打android包时报Could not resolve all files for configuration ':jcore-react-native:lintClassPath'异
文章目录 1.本地环境: 2.发现问题 3.解决问题 4.结束语 1.本地环境: Creator version:2.1.4 JDK: 1.8.231 NDK: r20 2.发现问题 打包时出现下 ...
- ssh: Bad configuration option: usedns
某天突然听到同事说服务器上git用不了了,上去一看,确实用不了了,git pull报出了如下错误: $ git pull /etc/ssh/ssh_config: line 56: Bad confi ...
- Asterisk Configuration for ARI
Overview ARI有很多部分 - Asterisk服务请求的HTTP server,将channel的控制权交给连接的client的dialplan应用,在asterisk和外呼应用之间共享状态 ...
- CUDA C++编程手册(总论)
CUDA C++编程手册(总论) CUDA C++ Programming Guide The programming guide to the CUDA model and interface. C ...
- Redis 配置文件介绍——redis.conf
Units单位 # Note that in order to read the configuration file, Redis must be # started with the file p ...
- 关于内网linux系统如果安装nodejs,npm,express,mongodb,forever等
内网的linux系统要安装nodejs以及express等系列的框架,因为系统是局域网和互联网是物理隔离的,所以,没法像官网的安装教程那样直接install了,只能手动安装,这里已经我们自己的linu ...
- 推荐一个HTML的语法高亮解析器
http://code.google.com/p/syntaxhighlighter/wiki/Languages 支持高亮的语法如下 Language Aliases C++ cpp, c, c++ ...
最新文章
- 什么猫咪最受欢迎?Python爬取全网猫咪图片,哪一款是你最爱的
- 滨海宣传员——青龙羊毛
- 中考计算机应用技术有前途吗,被中考“淘汰”的职高生,未来的就业前景怎么样,你知道吗?...
- python 3.9特性,Python 3.9 正式版要来了,会有哪些新特性?
- elasticsearch 集群no known master node
- Logstash入门简介
- 前端面试之前要准备的那些事
- 常量(const)和只读变量(readonly)
- 35岁小贝荣膺终身成就奖
- Node.js路径操作
- 如何提高程序员的生产率 (1)
- 从ip_queue到nfnetlink_queue(上)
- python3-爬取cnnvd漏洞库
- 深入理解深度学习——Item Embedding
- current account(经常账户)
- Mac-homebrew使用(Mac下包管理工具)
- office卸载重新安装,并安装mathtype7数学编辑公式
- 数据恢复软件如何恢复电脑删除的文件
- SQL 中 TRIM()函数用法
- 向量法计算多边形面积
热门文章
- 第五章 mysql表操作
- java使用POI根据word模板生成文档,并且根据参数值实现换行
- 付费视频,视频平台们绕不过的南墙?
- Spire.Office for .NET 7.9.0 update
- 固态硬盘和机械硬盘的区别分析
- fineReport标题显示m³,³会显示成?,解决方法
- 《Java SE实战指南》05-05:空白字符(White Space)
- Hybrid混合开发学习笔记(2)开发框架
- vscode 打开函数表_vscode函数列表插件
- java文档注解快捷键_javadoc注释快捷键