GearHack

: :

Add Comment | Related Links | TrackBack
Related Content

Windows OpenSSH Conflicts with cwRsync

Today, I hit a strange problem attempting to rsync from a local Windows tablet to a remote Linux server. I got the following error:

C:\Users\LocalUser\Desktop>rsync -auv RemoteUser@RemoteServer:TestFile* .
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.0]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(610) [Receiver=3.0.7]

The cwRsync has been working fine with the remote server on my other Windows computers. I had just freshly re-installed Windows 10 Home on this tablet. So there must have been some conflict. After fishing around a bit, I decided to check the path for ssh:

C:\Users\LocalUser\Desktop>which ssh
C:\WINDOWS\System32\OpenSSH\ssh.exe
C:\Program Files\cwRsync\bin\ssh.exe

Ah ha! Windows 10 Home attempted to take over ssh. By the way, you can download Which.bat for Windows.

One way to fix this problem is to insert the cwRsync path before the OpenSSH path in the System variables (see screen shot below). To get there on Windows 10, go to "Settings" -> "About" -> "Advanced system settings" -> "Environment Variables..."

C:\Users\LocalUser\Desktop>which ssh
C:\Program Files\cwRsync\bin\ssh.exe
C:\WINDOWS\System32\OpenSSH\ssh.exe

After swapping the path order, cwRsync started working again.

Attached Image:

Edit environment variable.png

Joseph
Wed, 22 Feb 2023 23:30:39 -0800

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 8 + 8?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.


Articles | Wiki
Forums | Latest | RSS
Library | Links | News
Search | Store | Help

227 Users Online



Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 2004 - 2024. All Rights Reserved.