Answer the question
In order to leave comments, you need to log in
How to configure cwRsync for public key authorization?
Good afternoon!
There is a comp1 with Windows 7, it is regularly necessary to synchronize files from it through an insecure network on FreeBSD - comp2.
Once upon a time, cwRsync was downloaded from here - www.rsync.net/resources/howto/windows_rsync.html
Installation, wizard included - all without question. rsync operation mode via shell, without daemon on computer2.
Everything works interactively through the sechaw wrapper, but recently there has been a need to automate the process.
Authorization by keys suits me, I'm doing it ... I
set up a connection (generated keys, laid out as it should), ssh will connect with a bang.
And here when I want to start up rsync - in any way. More precisely, the inscription "Establishing secure channel ..." hangs during the timeout from the wrapper, then the session closes and the offer starts to enter computer2 with a Windows account (this can be seen from the logs on computer2) which, of course, is not there, and then everything closes when passwords are entered incorrectly / timeout if not too lazy to wait.
If I remove the keys from ssh "-T -N" for the test, then I get a remote terminal (the login was successful, the RSA-DSA keys work!) You can even do something in the terminal, after a timeout, you are again prompted to log in with an account from Windows (the terminal is replaced by entering a password) and continue as before.
If in the connection script I change ONLY the name of the private key file to some non-existent file, then the next launch gives a fair swearing that the file does not exist, offers to interactively enter, and rsync rushes and jumps according to the password as it should.
Colleagues, tell me, how is it so? I have been working with all sorts of Unixes for a long time, there are no problems, there is also nowhere to fall, but it does not work!
Tell me how to solve this? Are there any other solutions for such a bundle?
mureevms : Thank you, your question contained the answer - show the command, after reading the examples again, abandoned the wizard and simply wrote - rsync.exe -lzogthvr -e ssh /cygdrive/m/data/data.rar [email protected]:/home /backup/www/data/data.rar
And everything worked, and over ssh, and faster. I apparently had double tunneling with double (?) authorization. Thank you all for the time spent on my lamer writings. )
Answer the question
In order to leave comments, you need to log in
There is a suspicion that:
1. the command is run from the wrong user
2. The wrong permissions on the keys
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question