cwrsync SSH/OpenSSH

2 posts / 0 new
Last post
cwrsync SSH/OpenSSH

cwrsync couldn't find ssh in /usr/local/bin, but no problem finding /usr/bin/ssh:

c:\cwrsync\bin\rsync -e /usr/bin/ssh -av .....  This works fine...

This produce error: 

c:\cwrsync\bin\rsync -e /usr/local/bin/ssh -av .....

rsync: Failed to exec /usr/local/bin/ssh: No such file or directory (2)


On remote host I have ssh from Sun in /usr/bin/: 

> ls -la /usr/bin/ssh

-r-xr-xr-x   1 root     bin       405248 Sep 17 17:53 /usr/bin/ssh

> /usr/bin/ssh -V

Sun_SSH_2.2, SSH protocols 1.5/2.0, OpenSSL 0x100010af


and OpenSSH in /usr/local/bin/

> ls -la /usr/local/bin/ssh

-rwxr-xr-x   1 root     sys       762580 Oct 10 13:22 /usr/local/bin/ssh

>> /usr/local/bin/ssh -V

OpenSSH_6.6p1-hpn14v5, OpenSSL 1.0.1j 15 Oct 2014


I did this test:

# mv /usr/bin/ssh /usr/bin/ssh.sun

# cp -p /usr/local/bin/ssh /usr/bin/

Test with OpenSSH in /usr/bin was O.K.:

c:\cwrsync\bin\rsync -e /usr/bin/ssh -av


What is the reason that ssh in /usr/local/bin couldn't be found?


Best reagrds,


Last seen: 15 hours 29 min ago
Joined: 01.05.2008 - 21:33
This behaviour is by default

This behaviour is by default - Cygwin mounts /usr/bin automatically to the bin directory available. However, the same doesn't happen with /usr/local....

Default Cygwin mount table may look like:

C:/cygwin/bin on /usr/bin type ntfs (binary,auto)

C:/cygwin/lib on /usr/lib type ntfs (binary,auto)

C:/cygwin on / type ntfs (binary,auto)