LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-23-2007, 07:33 AM   #1
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Rep: Reputation: 15
Rsync over VPN


Hello,

I have a working VPN between two sites (main-site and remote-site). I would like to do an rsync of some folders from the remote site to the main-site. I can do this by hand:

Code:
#rsync -avz admin@10.31.79.89:/Users/admin/html /home/joe/Desktop
This works just fine as long as I suppply the password for admin.

I would like to setup a cron job for this. I have seen lots of documentation of how to do this over ssh (with keys etc.) but since this is already encrypted I dont want to add more encryption because the link is slow.

I have tried using the -i password-file=file_containing_password but I get errors:

Code:
building file list ... rsync: link_stat "/home/joe/password-file=/home/joe/pswd.txt" failed: No such file or directory (2)
I am using Debian 4.0 at the main-site and the remote-site has a Mac O.S. 10 box.

Like I said if I do it by hand, everything works, but i would like to automate the process.

Thanks for any help you can give.

P.
 
Old 10-23-2007, 12:02 PM   #2
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Did you use --password-file= (with the 2 dashes)??
 
Old 10-23-2007, 01:50 PM   #3
indiancosmonaut
Member
 
Registered: Feb 2007
Posts: 65

Rep: Reputation: 15
Hi,

I can tell how I used rsync.
My situation was similar to yours!

If the rsa-public-key of the client is in the $HOME/.ssh/authorized_keys file of the host system, then you can use the following command

rsync -ave ssh admin@10.31.79.89:/Users/admin/html /home/joe/Desktop

Both my client and host were running Solaris.

Hope this might help, since i am not sure about MacOS.

Best,

indiancosmonaut
 
Old 10-23-2007, 03:23 PM   #4
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
A little better

Quote:
Originally Posted by The_JinJ View Post
Did you use --password-file= (with the 2 dashes)??
Thanks for your reply. You were right about the double dashes. It got rid of the error, but it still prompted me for a password. In the pswd.txt file all I have is the password.....nothing else, no username...nada...just the password. Thats OK right?

Thanks again
 
Old 10-23-2007, 03:54 PM   #5
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Come to think of it the --password-file option is for a password for the rsync daemon, not the shell
You'll need to use passwordless ssh to do what you want
 
Old 10-24-2007, 02:47 AM   #6
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by The_JinJ View Post
Come to think of it the --password-file option is for a password for the rsync daemon, not the shell
You'll need to use passwordless ssh to do what you want
Ouch...thats bad news. If I have to add ssh to this already encrypted data it is gonna add to the copy time. Can anyone think of another way to do this?

Thanks
 
Old 10-24-2007, 12:01 PM   #7
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Well ye....use the rsync daemon - look at /etc/rsyncd.conf - setup the users/passwords etc
 
Old 10-25-2007, 09:11 AM   #8
Pete89
Member
 
Registered: Jan 2007
Location: Granada Spain
Distribution: Ubuntu, Slackware, Debian, OpenWRT
Posts: 35

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by The_JinJ View Post
Well ye....use the rsync daemon - look at /etc/rsyncd.conf - setup the users/passwords etc

OK Niel,

I will try that and report back...


Thanks a lot for your help. I appreciate it very much.
 
  


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 server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 01:10 PM
Rsync through a VPN/SSH tunnel... Akonbobot Linux - Desktop 1 10-11-2006 12:26 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 09:00 AM


All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration