LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-13-2004, 08:07 AM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
windows sceduler and rsync over ssh: need help please


Hello

I'm currently trying to back up my windows machine every night using SSH and rsync.

I have written a batch file:

Code:
cd c:\

c:\iskm\bin\rsync -alv -e ssh --delete-after /cygdrive/c/iskm/ hamish@hamishnet.homelinux.com:/tmp/test/
c:\iskm\bin\rsync -alv -e ssh --delete-after /cygdrive/c/railroad/ hamish@hamishnet.homelinux.com:/tmp/railroad/
c:\iskm\bin\rsync -alv -e ssh --delete-after /cygdrive/c/kings_bounty hamish@hamishnet.homelinux.com:/tmp/kings_bounty/
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
 
Old 12-13-2004, 10:03 PM   #2
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
This is a windows scheduler problem.

the ssh.exe program is looking for the user's ssh config. Make sure you are running this as yourself in the scheduler (it asks what user to use).

I don't know which rsync/ssh .exe you are using. See if it defines where the ssh_config file is located, as this is the same dir as id_dsa (your private key). There probably is an evironment variable that needs to be set.

Good Luck,
chris
 
Old 12-14-2004, 08:30 AM   #3
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Hey
I gave up with scheduler (sadly) and downloaded a small, simple, free seperate scheduler. Everything is working a treat now!!

Thanks for your help.

Hamish
 
Old 03-27-2007, 02:26 PM   #4
benison
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
what software to use

Quote:
Originally Posted by hamish
Hey
I gave up with scheduler (sadly) and downloaded a small, simple, free seperate scheduler. Everything is working a treat now!!

Thanks for your help.

Hamish
Mind letting me or us know what free utility did you use.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync and ssh? IchBin Linux - Newbie 4 02-13-2005 03:41 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
Rsync vs ssh satimis Linux - Software 7 04-04-2004 06:58 AM
Rsync and SSH Phaethar Linux - Software 3 03-22-2004 03:18 PM
SSH and RSYNC problem pixie Linux - General 2 03-02-2004 11:02 AM


All times are GMT -5. The time now is 01:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration