Skip to content

Running scp returns an error /usr/bin/ssh: No such file or directory #1401

@c33s

Description

@c33s

needing rsync on windows made me search for rsync solutions for windows.

there is

i tested both and i have gone with cwrsync. the problem with cwrsync is, that it is not compatible with the ssh binary bundled with git for windows.

dup() in/out/err failed
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]

by deleting the ssh.exe shipped with git for windows, the problem was solved. cwrsync correctly uses its own ssh binary.

but now i have the problem, that scp bundled with gitlab for windows don't look for ssh.exe in the $PATH, it looks like it has the path hardcoded. i get the following error:

/usr/bin/ssh: No such file or directory

is there a way to tell scp to use the ssh provided in the $PATH?

$ which ssh
/c/home/bin/cwRsync/ssh

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions