我正在尝试为Cygwin中的OpenSsh设置配置文件。
在~/.ssh
中,我有一个config
文件,如下所示:
Host sgn
HostName mydomain.net
User uRandomDigits
但是,当我执行
ssh sgn
时,出现以下错误:ssh: Could not resolve hostname sgn: hostname nor servname provided, or not known
我不知道我在做什么错。任何援助将不胜感激。我在Windows Vista上。
最佳答案
config
文件放置在错误的位置。 :P
对于Cygwin,.ssh文件夹位于C:\cygwin\home\{User}\.ssh
中,而不是C:\Users\{User}
中。
关于ssh - 主机未从配置文件加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19894599/