相关疑难解决方法(0)

在 Cygwin 上设置 SSH/Git 会产生“~/.ssh/config 上的错误权限”

我正在尝试在 Cygwin 下使用 OpenSSH 设置 Git。我几乎完成了所有设置。我有代理和公钥等等......但现在我得到了这个非常奇怪的错误:

$ git pull -u origin master
Bad owner or permissions on /home/Jordan/.ssh/config
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

谷歌搜索它似乎是一个权限错误(当然)。一个问题:权限对我来说很好。

我也试过做一个chmod 0600 ~/.ssh/config,但这没有帮助。我尝试做的事情:

Jordan@EarlzWindows8VM ~/dev/NonExceptional
$ chmod 0600 ~/.ssh/config 

Jordan@EarlzWindows8VM ~/dev/NonExceptional
$ stat ~/.ssh/config 
  File: `/home/Jordan/.ssh/config'
  Size: 47              Blocks: 1          IO Block: 65536  regular file
Device: 4ade2efdh/1256075005d   Inode: 1970324837237461  Links: 1
Access: (0660/-rw-rw----)  Uid: ( 1001/  Jordan)   Gid: (  513/    None)
Access: 2013-01-12 22:53:32.483072600 -0500
Modify: 2013-01-12 22:53:32.486074700 -0500
Change: 2013-01-12 23:27:33.077476800 …
Run Code Online (Sandbox Code Playgroud)

windows ssh cygwin git

6
推荐指数
3
解决办法
9251
查看次数

标签 统计

cygwin ×1

git ×1

ssh ×1

windows ×1