多git账号配置后报错Bad configuration option
来源:互联网 发布:西班牙海鲜饭 知乎 编辑:程序博客网 时间:2024/06/13 06:32
在config里配了两个host对应的账号,结果使用其中一个账号时控制台报如图所示的错
问题原因
~/.ssh/config文件缩进有问题
解决方案
检查该配置文件,把每一行配置前的空格都去掉
需要注意的是,如果config文件中只配置一个host对应的账号的话,缩进是无所谓的,都可以正常使用。但是有多个配置的话,配在后面的账号就会受影响。所以都修改一下,不要有空格。
附~/.ssh/config文件例子
# userName1(email1@xxx.com)Host host1HostName host1PreferredAuthentications publickeyIdentityFile ~/.ssh/id_rsa_userName1User userName1# userName2(email2@xxx.com)Host host2HostName host2PreferredAuthentications publickeyIdentityFile ~/.ssh/id_rsa_userName2User userName2
阅读全文
0 0
- 多git账号配置后报错Bad configuration option
- git多账号配置
- Git多账号配置
- Git配置多账号
- Git多账号配置
- GIT本地多账号配置
- command-line: line 0: Bad configuration option: PermitLocalCommand
- sshd无法启动——Bad configuration option:ForwardX11Trusted
- eclipse配置多个git账号
- git多账号ssh-key配置
- windows下git多账号配置详解
- Git配置多账号登录不同项目
- Git配置多账号登录不同项目
- Git配置多账号登录不同项目
- Git配置多账号登录不同项目
- git 账号配置
- Linux 配置git(码云)账号
- 全局配置两个git账号
- repo
- mybatis之#{}与${}小结
- 博弈——Alice and Bob
- 从零构建TCP/IP协议(这次叫PCT协议)
- Python 基本语法
- 多git账号配置后报错Bad configuration option
- Servicehot:混合云泄露四大公有云的秘密 (20
- 从零编写日志分析系统之linux用户创建
- ubuntu 14.04 64位系统安装teamviewer的一点问题
- 【04】Bootstrap排版
- C# 可访问性不一致: 参数类型“XXX”的访问性低于方法“XXX”
- arm-linux-gcc
- Android学习笔记九之Intent
- 如何用打出反引号shell中