Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-13-2005, 12:22 AM   #1
Registered: Dec 2004
Distribution: Tinysofa Classic
Posts: 75

Rep: Reputation: 15
rsync and ssh?

I'm trying to setup a cron job to rsync a few things to another computer. I understand I can do this command.

rsync /home/ichbin/www/ -ave ssh root@xx.xx.x.xx:/home/ichbin/backup

Is there anyway I can have it pass the password along in this command? So that I don't have to type in the password.

Or is there a better way to do this?
Old 02-13-2005, 03:10 PM   #2
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
with regards to the ssh part, you can use other forms of authentication, based on keys etc.

read up or man ssh to find out how to do the public key authentication option.

Theres a good article or thread on LQ about this...misplaced bookmark sadly...

hope this helps though...
Old 02-13-2005, 03:38 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,042
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907

Look at david_ross' two linux answers ...

Old 02-13-2005, 03:39 PM   #4
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Using ssh without passwords: SSH Public Key Authentication
Old 02-13-2005, 03:41 PM   #5
Registered: Dec 2004
Distribution: Tinysofa Classic
Posts: 75

Original Poster
Rep: Reputation: 15
Thanks everyone!


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->ssh port lackluster Linux - Software 2 05-27-2007 08:42 PM
rsync and ssh port ohcarol Linux - Software 2 12-22-2004 10:29 AM
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 06:35 AM.

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