LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2009, 04:20 PM   #1
digity
Member
 
Registered: Apr 2005
Posts: 105

Rep: Reputation: 15
me want rsync, hold the ssh please


when i try to do a simple rsync transfer with NO switches (namely -e) I get the following error:

Code:
digity@digityzers:/var/log$ rsync 192.168.1.10:/music "/media/hollywood/test bed/music"
ssh: connect to host 192.168.1.10 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(635) [receiver=3.0.3]
I don't need ssh/encryption since the source and destination are on my private home network. how do I get rsync to NOT use ssh/encryption?

TIA

Last edited by digity; 02-08-2009 at 04:24 PM.
 
Old 02-08-2009, 05:47 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
It is probably easier to use rsync with ssh than without! I use it all the time, also on a LAN, and ssh won't hurt.
 
Old 02-08-2009, 05:56 PM   #3
bt101
Member
 
Registered: Mar 2008
Posts: 61

Rep: Reputation: 19
I may be wrong, but I think you are trying the method where you are trying to connect to a Windows (or Samba) share. If that is the case, you should mount the remote share on your local filesystem first. Then just specify the location on your local filesystem where the remote filesystem is mounted.
 
Old 02-08-2009, 07:23 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
I just spotted something which may be of significance:

Quote:
digity@digityzers:/var/log$ rsync 192.168.1.10:/music "/media/hollywood/test bed/music"
change the above to:
Code:
digity@digityzers:/var/log$ rsync 192.168.1.10:/music /media/hollywood/test\ bed/music
 
Old 02-08-2009, 07:46 PM   #5
PresGas
Member
 
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Blog Entries: 5

Rep: Reputation: 18
rsync uses ssh by default when you use the command the way you have. If you want to not have the overhead of ssh (of which it really is not that bad), you will need to enable the rsh service (i.e. telnet) and make sure it is not accessible from the outside. Then you can use this
Code:
-e, --rsh=COMMAND
in your command to tell it to use whatever rsh service you have enabled.

Make sure to read up on the rsync command to see if you need anything else to go with that
Code:
man rsync
.
 
Old 02-08-2009, 07:48 PM   #6
PresGas
Member
 
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Blog Entries: 5

Rep: Reputation: 18
Quote:
Originally Posted by irishbitte View Post
I just spotted something which may be of significance:



change the above to:
Code:
digity@digityzers:/var/log$ rsync 192.168.1.10:/music /media/hollywood/test\ bed/music
irishbitte, these accomplish the same thing.
 
Old 02-09-2009, 02:11 AM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
fair enough, it's a long time since I wrote that backup script!
 
Old 02-09-2009, 09:03 AM   #8
PresGas
Member
 
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Blog Entries: 5

Rep: Reputation: 18
irishbitte

I am glad you were actually able to read that post. WOW! Did that get garbled.

 
Old 02-09-2009, 09:33 AM   #9
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
As far as I know,
rsync … remotehost:/path will connect to the remote sshd, whereas
rsync … remotehost::/path will connect to the remote rsyncd (which has to run, of course…).

Yves.
 
Old 02-09-2009, 10:33 AM   #10
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Hmm, that last post might be the trick! But I still think you should stick with SSH, it stops files from getting into the wrong hands!
 
  


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 with ssh mahmoud Linux - Security 4 02-20-2008 12:16 PM
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 01:10 PM
rsync over ssh mattsoftnet Linux - Software 2 06-02-2006 02:55 PM
rsync and ssh? IchBin Linux - Newbie 4 02-13-2005 04:41 PM
Rsync vs ssh satimis Linux - Software 7 04-04-2004 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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