LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-08-2005, 06:42 PM   #1
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 31
rsync


Hello,

I was wondering how do I use rsync with a rsa key? For example, if I were to ssh into my linux machine, I would use ssh -i ~/.ssh/id_rsa username@hostname.com.

I was reading the man file, and I don't think rsync uses/accepts rsa keys to auth to a linux machine. Is the only way I can do this is to use ssh-agent with ssh-add??

Thanks for your help!

-X
 
Old 12-08-2005, 07:20 PM   #2
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Original Poster
Rep: Reputation: 31
Well...I just figured it out. Here is how I used rsync:

1. Make sure rsync is installed on both machines.
2. Since I am using RSA auth, I have to specify a RSA key with no password.
3. I configured a user specific ssh_config file.
4. Ran rsync -aze ssh file_being_copied NAME:/path/

# -- Below is my user specific ssh_config file --

Host NAME
Hostname my.dnsname.org
IdentityFile /home/user/.ssh/id_rsa
User USERNAME

# -- End of config --

I saved the above file as 'config' under ~/.ssh/config

I hope this helps someone out!

Good luck!
 
Old 12-09-2005, 03:13 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Go through this..
http://www.jdmz.net/ssh/


And also visit http://rsync.samba.org/documentation.html
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync help! slack66 Linux - Newbie 1 10-27-2005 07:40 AM
rsync knowkontrol Linux - General 4 10-23-2005 03:08 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
Rsync Help! dlc2000 Linux - Software 2 06-16-2004 01:15 AM
rsync slack66 Slackware 1 07-29-2003 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:19 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
Open Source Consulting | Domain Registration