使用 git bash(windows) 创建 ssh 配置文件的命令?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25483778/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Command to create ssh config file using git bash(windows)?
提问by ikiw
I could only find details about configuring the config file, but i could no where find how to create a config file manually. I have generated rsa key, which is under .ssh folder but i couldn't find the config file being created there.
我只能找到有关配置配置文件的详细信息,但找不到如何手动创建配置文件的方法。我生成了 rsa 密钥,它位于 .ssh 文件夹下,但我找不到在那里创建的配置文件。
回答by prajmus
You can simply create it by yourself:
您可以简单地自己创建它:
touch ~/.ssh/config
or go to .ssh
directory and do only:
或转到.ssh
目录并仅执行以下操作:
touch config
And then fill it with data.
然后用数据填充它。