LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-23-2008, 12:06 PM   #1
mantonr
LQ Newbie
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
Cannot get rsync to work


I have a gentoo server box that i want to back up my laptop to over the internet.

At the moment I'm trying to set this up over my home network.

I want to use ssh in order to make the transfers secure and this is all set up and working on the server. The computer that I am using has a key for the ssh for passwordless authentication.

When I type the rsync command this is what happens:

Mac:~ rob$ rsync Documents/Medicine 192.168.1.4:/home/robert/Test/
Permission denied (publickey,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-31/rsync/io.c(359)

I don't get a password prompt and i don't know why, does anybody have any suggestions?
 
Old 07-23-2008, 12:16 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Try putting some options in there:

rsync -av -e ssh Documents/Medicine 192.168.1.4:/home/robert/Test/
 
Old 07-23-2008, 12:33 PM   #3
mantonr
LQ Newbie
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
I still get exactly the same output with those options in.

Could it be something to do with the setup of the server?
 
Old 07-23-2008, 01:19 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Can you simply ssh to the machine without any errors?
 
Old 07-24-2008, 05:44 AM   #5
mantonr
LQ Newbie
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
yep, i can ssh perfectly without any problems at all
 
Old 07-24-2008, 07:44 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Is the user on one machine rob and robert on the other?

Try

Code:
rsync -av -e ssh Documents/Medicine robert@192.168.1.4:/home/robert/Test/
 
Old 07-24-2008, 09:44 AM   #7
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by mantonr View Post
yep, i can ssh perfectly without any problems at all
billymayday brought up a good point. You seem to be the user rob on the source and the destination is using a home directory of robert. If you're using passwordless authentication, did you provide such keys to the user robert on the remote machine?

When you say ssh worked, are you logging in as rob or robert? Or is the user rob on the remote machine use the home directory of robert? More details will help.
 
Old 08-08-2008, 05:28 PM   #8
mantonr
LQ Newbie
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
Hey thanks guys, that seems to have done the trick - can't believe I didn't spot that myself.

Really appreciate the help!!!
 
  


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
Can rsync work with 10 terabyte data? ufmale Linux - Software 3 06-22-2008 06:09 PM
Can't get ssh and rsync to work in DSL FWSquatch Linux - Newbie 2 07-31-2007 02:53 PM
rsync -R didn't work Niceman2005 Linux - Networking 4 03-30-2005 08:30 PM
How does rsync work? obelxi Linux - General 6 03-07-2005 01:49 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM


All times are GMT -5. The time now is 01:15 PM.

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