cygwin为什么不读取我的主目录中的.ssh/config文件? [英] Why won't cygwin read the .ssh/config file in my home directory?
问题描述
我正在使用cygwin,并且正在尝试设置.ssh/config文件.Cygwin的文件夹在我的C:驱动器中.我的主目录是C:\ Users \ USER.我注意到,当我编辑C:\ Users \ USER.ssh \ config时,cygwin甚至都没有注意到它(即使它注意到了我的USER文件夹中的其他文件,即.bashrc).但是,如果我将其放在C:\ cygwin64 \ home \ USER.ssh \ config中,它的确会注意到该配置文件.
I am using cygwin and I am trying to set up an .ssh/config file. Cygwin's folder is in my C: drive. My Home directory is C:\Users\USER. I have noticed that when I edit C:\Users\USER.ssh\config, cygwin does not even notice it (even though it notices the other files I have in my USER folder, i.e. .bashrc). But it does notice the config file if I put it in C:\cygwin64\home\USER.ssh\config.
有没有办法让cygwin代替读取我的USER主目录中的.ssh文件夹?
Is there a way to get cygwin to read the .ssh folder in my USER home directory instead?
推荐答案
请确保/etc/passwd中的主目录设置与/home/匹配(通常,根本没有设置)(以':'分隔的倒数第二个字段)行.然后您需要重新启动cygwin会话(退出终端,然后重新启动)
Make sure your home directory setup in /etc/passwd matches /home/ Often it is not set at all (second to last field in the ':' delimited line. Then you'll need to restart your cygwin session (exit the terminal, and restart)
那应该可以解决您的问题.
That should fix your problem.
这篇关于cygwin为什么不读取我的主目录中的.ssh/config文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!