Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30521 - proposal: rsync default to using ssh rather than rsh for remote syncs
Summary: proposal: rsync default to using ssh rather than rsh for remote syncs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-06 17:27 UTC by Cedar McKay
Modified: 2003-10-18 20:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedar McKay 2003-10-06 17:27:49 UTC
trying a simple rsync between two boxes as suggested in the man pages fails. For
example:


rsync -av ./test cedar@localhost:/tmp/
Failed to exec rsh : No such file or directory
rsync error: error in IPC code (code 14) at pipe.c(82)
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)


Even if you emerge net-misc/netkit-rsh you are still left with setting up rsh.
To get rsync to work you must specify ssh rather than rsh like this:

rsync -av --rsh=ssh ./test cedar@localhost:/tmp/
cedar@localhost's password:
building file list ... done
wrote 152 bytes  read 20 bytes  22.93 bytes/sec
total size is 7  speedup is 0.04


In my opinion gentoo should default to using ssh over rsh since it is more
secure and more common. My friend tells me that debian defaults to ssh in this case.


Reproducible: Always
Steps to Reproduce:
1.rsync -av ./test cedar@localhost:/tmp/
2.bad
3.rsync -av --rsh=ssh ./test cedar@localhost:/tmp/
4. good




 emerge info
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 AMD Athlon(TM) XP 2000+
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm
berkdb slang readline arts svga tcltk java mysql X sdl gpm tcpd pam libwww ssl
perl python imlib oggvorbis qt kde motif opengl apache2 imap maildir samba sasl
v4l -gnome -gtk"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-10-15 20:25:20 UTC
not sure we want to alter the default behaviour, what do you think, Mike?
Comment 2 SpanKY gentoo-dev 2003-10-15 20:55:16 UTC
ssh is more common than rsh nowadays ... rsh sucks too ;)

besides if it's good enough for deb it's good enough for me
Comment 3 SpanKY gentoo-dev 2003-10-18 20:15:44 UTC
2.5.6-r4 now passes --with-rsh=ssh to econf