无法创建目录“/c/\303\234/.ssh" [英] Could not create directory '/c/\303\234/.ssh'

查看:59
本文介绍了无法创建目录“/c/\303\234/.ssh"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 rhc 创建了一个 OpenShift 应用程序.git 存储库已在我的 Windows 7 PC 上成功克隆.我想将我的代码更改推送回 OpenShift.我正在使用 TortoiseGit.

我使用了 了解更多信息.

I have created an OpenShift application using rhc. The git repository has been cloned successfully on my Windows 7 PC. I want to push my code changes back to OpenShift. I am using TortoiseGit.

I have used the procedure described here to create and set SSH keys for TortoiseGit. I have modified the settings to configure the SSH private key:

Yet, when I try to push my changes, I get:

What is causing this and how to solve it? Thanks!

解决方案

It looks like git cannot save the known hosts list on c:\ (in c:\.ssh\.known_hosts). Usually the .ssh dir is being created in the $HOME directory. Try setting the HOME environment variable to a directory writable by the current user, i.e. the user's home directory in Windows: c:\Users\<username>.

It depends whether you're using msysgit or installed git through cygwin, etc. Please take a look at https://serverfault.com/questions/194567/how-to-i-tell-git-for-windows-where-to-find-my-private-rsa-key for further information.

这篇关于无法创建目录“/c/\303\234/.ssh"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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