我已经在windows2008服务器上安装了copssh,然后我尝试通过ssh在服务器上克隆一个存储库。但是无论我怎么努力,我都不能修复这个错误。日志如下:
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连接到服务器并使用以下命令时:
cd /home/administrator/.ssh
echo test>test文件测试将创建!所以看起来我有这个文件夹的权限!
这是我尝试使用管理员帐户进行克隆时的日志:
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!发布于 2010-02-03 07:39:34
最新版本的copssh/cwrsync使用cygwin 1.7并需要HOME环境变量。因此,只需添加一个HOME=%HOMEDRIVE%%HOMEPATH%变量,它就会立即生效。它为我做到了:)
https://stackoverflow.com/questions/2188178
复制相似问题