首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >windows上的Mercurial和带有Copssh问题的ssh配置

windows上的Mercurial和带有Copssh问题的ssh配置
EN

Stack Overflow用户
提问于 2010-02-03 06:20:13
回答 1查看 2K关注 0票数 1

我已经在windows2008服务器上安装了copssh,然后我尝试通过ssh在服务器上克隆一个存储库。但是无论我怎么努力,我都不能修复这个错误。日志如下:

代码语言:javascript
复制
C:\Users\Admin>hg clone ssh://ehsan@rafsanjani.ir
The authenticity of host 'rafsanjani.ir (96.31.90.174)' can't be established.
RSA key fingerprint is 41:a8:41:21:61:1a:67:2c:e8:44:99:6c:63:e7:06:73.
Are you sure you want to continue connecting (yes/no)? yes
ehsan@rafsanjani.ir's password:
remote: Could not create directory '/home/Administrator/.ssh'.
remote: Failed to add the host to the list of known hosts (/home/Administrator/.ssh/known_hosts).
remote: /bin/bash: Permission denied
abort: no suitable response from remote hg!

我尝试以管理员身份登录,但收到相同的错误信息。此外,我还更改了位于C:\Program Files (x86)\ICW\home\administrator中的文件夹的权限,以便ehsan拥有对此文件夹的完全访问权限。

另外,当我使用putty连接到服务器并使用以下命令时:

代码语言:javascript
复制
cd /home/administrator/.ssh 
echo test>test

文件测试将创建!所以看起来我有这个文件夹的权限!

这是我尝试使用管理员帐户进行克隆时的日志:

代码语言:javascript
复制
C:\Users\Admin>hg clone ssh://administrator@rafsanjani.ir
The authenticity of host 'rafsanjani.ir (96.31.90.174)' can't be established.
RSA key fingerprint is 41:a8:41:21:61:1a:67:2c:e8:44:99:6c:63:e7:06:73.
Are you sure you want to continue connecting (yes/no)? yes
administrator@rafsanjani.ir's password:
remote: Could not create directory '/home/Administrator/.ssh'.
remote: Failed to add the host to the list of known hosts (/home/Administrator/.ssh/known_hosts).
remote: bash: hg: command not found
abort: no suitable response from remote hg!
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-02-03 07:39:34

最新版本的copssh/cwrsync使用cygwin 1.7并需要HOME环境变量。因此,只需添加一个HOME=%HOMEDRIVE%%HOMEPATH%变量,它就会立即生效。它为我做到了:)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2188178

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档