Hello
I'm currently trying to back up my windows machine every night using SSH and rsync.
I have written a batch file:
Everything is set up so that the client has the dsa key stored in an agent, and can ssh to the client without passwords.
At the moment, if I just run the batch file manually, EVERYTHING works perfectly!!!
However, when the batch file is run by windows scheduler, it does not understand that the idenfication is set and that it doesn't need a password. It says:
Code:
C:\>c:\iskm\bin\rsync -alv -e ssh --delete-after /cygdrive/c/iskm/ hamish@hamishnet.homelinux.com:/tmp/test/
The authenticity of host 'hamishnet.homelinux.com (81.152.70.36)' can't be established.
RSA key fingerprint is 82:97:5c:20:91:75:db:25:fc:df:9d:73:cb:22:83:c2.
Are you sure you want to continue connecting (yes/no)?
Does anyone has any suggestions as to why is says this? When I say "yes" I want to continue, I get further errors, which may be the problem;
Code:
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/.ssh/known_hosts).
Enter passphrase for key '/.ssh/id_dsa':
hamish@hamishnet.homelinux.com's password:
It asks for the passphrase for the identification key (but there is no passphrase). So if I press etner, it asks for a password. It accepts the password and the performs the rsync successfully. Of course, it then asks for the password for each rsync command.
I has tested this same scenario with simple SSHing, and I get the same problem.
Is this a scheduler problem? That is, not allowing automated connection with remote machines? or can it not find the required programme?
Thanks in advance for all your suggestions.
Hamish