CopSSH Client setup problems

2 posts / 0 new
Last post
gary.smallridge
Offline
Last seen: 2 years 6 hours ago
Joined: 13.09.2012 - 10:42
CopSSH Client setup problems

Hi,

I've installed CopSSH Client (V5.3) on Windows 2012 R2 and modified the copssh.cmd file so that COPSSH_HOME points to the user's home directory, e.g. 

 

<code>

REM Make environment variable changes local to this batch file

SETLOCAL

 

REM ** CUSTOMIZE ** Specify where to find openssh files

SET COPSSH_HOME=d:\users\gary.smallridge\desktop\copssh_client_x64

 

REM Set HOME variable to your windows home directory. That makes sure 

REM that ssh command creates known_hosts in a directory you have access.

SET HOME=%HOMEDRIVE%%HOMEPATH%

 

REM Make Copssh home as a part of system PATH to find required DLLs

SET CWOLDPATH=%PATH%

SET PATH=%COPSSH_HOME%\BIN;%PATH%

 

REM Windows paths may contain a colon (:) as a part of drive designation and 

REM backslashes (example c:\, g:\). Solution: use absolute path 'a la unix', 

REM replace backslashes (\) with slashes (/) and put -/cygdrive/- in front of the 

REM drive letter:

REM 

REM Example : C:\WORK\* --> /cygdrive/c/work/*

REM 

 

REM ** CUSTOMIZE ** Enter your openssh client command(s) here

REM Examples: ssh itefix@remotehost, sftp myuser@testhost, scp -i private.key test@myhost

 

 sftp -vvv sftp-host 

</code>

I get the following error:

debug1: Connection established.

Could not create directory '/home/Gary.Smallridge/.ssh'.

debug1: key_load_public: No such file or directory

 

How do I setup 'home' so that it is able to create the directory?

 

 

 

itefix
Offline
Last seen: 21 hours 26 min ago
Joined: 01.05.2008 - 21:33
We have observed that Cygwin

We have observed that Cygwin 2+ doesn't inherit user level DOS environment variables as it used to be. There are some discussions going on the topic and there is no solution/fix afaik. What you can do is to create a link /home/.... to your profile directory.