Error with cwRsync on Windows 8 - windows

I've installed cwRsync on my Windows 8 machine and tried to rsync files to remote server with the following command:
rsync rev/ user#ip:~/.tmp --rsh ssh --recursive --delete --delete-excluded --verbose
But get the following error:
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [Receiver=3.0.9]
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(759) [sender=3.0.6]
Does anybody faced with the error above and what could be reason?

Seems that you need to run this command as admin. Open your cmd as administartor and run again.

Related

Is there a way to make Git change its ncat command in `git push`?

Upon running this command: $ git push origin DC_PLATFORMAPP-1571
I get this error:
C:\Program Files (x86)\Nmap\ncat.exe: illegal option -- X
Ncat: Try `--help' or man(1) ncat for more information, usage options and help. QUITTING.
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
fatal: Could not read from remote repository.
This has only been happening since installing nmap for windows from here: https://nmap.org/download.html
Is there a way to make git change it's ncat command built into git push?
The error occurs in Git bash. On windows CMD, this error occurs:
error: src refspec DC_PLATFORMAPP-1517 does not match any
error: failed to push some refs to '...'
error: src refspec DC_PLATFORMAPP-1517 does not match any
error: failed to push some refs to '...'

rsync does not work in Visual Studio 2019

I have created a simple CMake project from the template provided in visual studio 2019. It connects to remote Linux server and errors out while copying a file using "rsync" with the following error.
Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.
The log shows the error details as following.
23:03:25.2045083 [Error, Thread 88] liblinux.IO.Rsync: liblinux.IO.RsyncException: Could not create daemon configuration file on remote device ---> liblinux.IO.RsyncException: echo config error: and error output: Unmatched ".
Please note: rsync is installed on the remote Linux server and tested it with and without ssh its working.
When I tried to test rsync which is provided by Visual Studio under "C:\Apps\VS2019Pro\Common7\IDE\VC\Linux\bin\rsync\rsync.exe" to sync/copy a file to remote linux server it fails with following error.
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.3]
Any help on this will be appreciated.
Rsync speaks the rsync protocol, which is a client server protocol.
The client you are using needs to talk to a server, which is the rsync binary on the remote server, which doesn't seem to be here.
The message is pretty clear:
Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.
You really need to have rsync on your remote server.
I installed rsync from source on the target using the default settings which installed it at /usr/local/bin/rsync. Apparently the path Visual Studio expects is /usr/bin. I created a symbolic link with the command 'ln -s which rsync /usr/bin/rsync'

SSH Host Key Rsync Issue

I have a bash script which uses rsync to pull down backups of my server to an offline server I have running Ubuntu.
But it does not seem my offline server wants to run this script right. And the issue I get when I run it manually run it is,
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]
But heres the thing, the host key is fine and works when I SSH. So logging on to my offline server and from there logging into the remote server works without any issues.
Here is where the issue gets very odd, the bash script works (when asked to run via webmin) after I have SSHed into the offline server. I dont have to do anything else, just login to the remote server and the bash script will work.
That is what I dont understand, if the host keys are not configured right, then they should not work at all, but they do, once I have logged into the server?
Thanks,
Try to login with ssh -a to prevent your ssh-agent to be forwarded. You probably use an identiy in your agent to authenticate to the target Server. This authentication will not work if your ssh-agent ist not present.

Git on Windows fails to push local branch

I installed Git Client in Windows and have created a initial branch locally. Currently I am trying to push the first version to the Git Server. But it does not get through successfully. I received the following error message:
Pushing to git#(my_git_server).git
FATAL ERROR: Network error: Connection timed out
fatal: The remote end hung up unexpectedly
Here is what I did for the setup:
Generate public and private key:
ssh-keygen -t rsa -C "(my email id)"
Copy the public key to Git server
Use KeyGen.exe to convert open ssh key to Putty private key
Load the private key with pageant.
Try to push the local branch to the server. (Failed)
I tried to SSH to the git Server and received the following error message:
server unexpected closed network connection.
Please kindly help me out.

plink: unknown option "-q" error in Cruise Control

I am getting the following error on configuring project on cruise control
Error Log
plink: unknown option "-q"
svn: E210002: Unable to connect to a repository at URL 'svn+ssh://<uname>#<ip>/subversion/<folder1>/mconsole'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
<Update> failed.
I tried editing %USERPROFILE%\AppData\Roaming\Subversion\config and removing "-q" option from ssh = $SVN_SSH ssh but still its giving the same error.
My SVN Version :
TortoiseSVN 1.7.10, Build 23359 - 64 Bit , 2012/10/08 11:46:26
Subversion 1.7.7
I have copied plink.exe from my putty folder to tortoise folded and renamed it to ssh.exe to solve ssh+svn issue
Can someone please help me to sort out the issue.

Resources