Rsync from local linux to remote windows server

388 views Asked by At

I am trying to copy files from local Linux server to remote windows file server using rysnc and sshpass but getting error

code

rsync --rsh='/usr/bin/sshpass -p 'password' ssh -p 139 -o StrictHostKeyChecking=no -l user' /x/y/z/ [email protected]:/a/b/c/ 

output

ssh_exchange_identification: Connection closed by remote host
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1] 

Can anyone help?

0

There are 0 answers