新手问题 [已解决] ssh_config 的配置 跟连 github.com 有怎样的关系

crabby · 2012年11月21日 · 最后由 Crabby 回复于 2012年11月21日 · 8087 次阅读

我的台式电脑上开启了 ssh , 供我的小本本 ssh 连接到这台电脑使用, 台式机的/etc/ssh/ssh_config 配置如下 (禁用 root 登录,允许 crabby 用户从小电脑上登录)

PermitRootLogin   no 
AllowUsers  crabby

但是如果连 [email protected] 始终会报如下错误~

$ ssh -T [email protected]
/etc/ssh/ssh_config: line 48: Bad configuration option: PermitRootLogin
/etc/ssh/ssh_config: line 49: Bad configuration option: AllowUsers
/etc/ssh/ssh_config: terminating, 2 bad configuration options

如果将 ssh_config 中那两句注释掉,就可以连 [email protected] ,大家是否遇到过此种情况呢?是否需要再在 ssh_config 中做些配置

放错文件了 服务端配置是 sshd_config

#1 楼 @doitian 多谢点拨 非常感谢

需要 登录 后方可回复, 如果你还没有账号请 注册新账号