试图“安装” github,.ssh dir不在那里 [英] Trying to "install" github, .ssh dir not there

查看:164
本文介绍了试图“安装” github,.ssh dir不在那里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循github的逐步指导。
我试图在Windows 7上安装它。

I'm following the step by step directions of github. I'm trying to install it on windows 7.

文档说明密钥将存储在
/用户/ tedpottel /的.ssh / 。我打开隐藏的文件,仍然无法看到该文件夹​​。
然后我尝试创建一个具有相同文件名的新文件夹, .ssh
我有一个无效的文件名错误。 Windows不会让我创建一个文件名开始一段时间。

The documentation states the key will be stored in /users/tedpottel/.ssh/. I turned on hidden files, and still can't see the folder. Then I tried to create a new folder with the same file name, .ssh, I got a invalid file name error. Windows will not let me create a file name begining with a period.

我有点困惑,不会 .ssh 是一个无效的文件名?
我卡住了,任何帮助都会很棒

I'm a little confused, wouldn't .ssh be a invalid file name? I'm stuck, any help would be GREAT

推荐答案

您应该可以在DOS会话:

You should be able to create your ssh directory in a DOS session:

cd c:\Users\tedpottel
mkdir .ssh

使用 git-cmd.bat /users/tedpottel/.ssh/ 的路径是unix您可以在bash会话中使用,也包含在 msysgit 中。

Use the git-cmd.bat provided by msysgit to launch your DOS session.
Path like /users/tedpottel/.ssh/ are unix-like paths that you can use in a bash session, also included in msysgit.

git-cmd.bat ,环境变量 HOME 将被设置为 c:\Users\ tedpottel ,如果你希望ssh能够正常工作,它很重要(它会在%HOME%\.ssh 中寻找公钥/私钥)。 。

In that git-cmd.bat, the environment variable HOME will be set to c:\Users\tedpottel, which is important if you want ssh to works properly (it will look for public/private keys in %HOME%\.ssh).

这篇关于试图“安装” github,.ssh dir不在那里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆