LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-20-2006, 12:13 AM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
rsync without "-e ssh". Still safe?


NOt sure if I made a mistake or not, but I was testing rsync and ran this command:
Code:
rsync -azvotg username@123.45.67.89:/home /home
I still got the SSH login asking for my password. Does that mean it is still secure and safe? I read somewhere that I was supposed to do:
Code:
rsync -azvotg -e ssh username@123.45.67.89:/home /home
My /var/log/auth.log still shows me signing on using the SSHD. So rsync by itself is okay, correct?

Last edited by Micro420; 12-20-2006 at 12:16 AM.
 
Old 12-20-2006, 03:41 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
From "man rsync"
Code:
GENERAL
       Rsync  copies  files  either  to  or  from  a remote host, or locally on the current host (it does not support copying files
       between two remote hosts).

       There are two different ways for rsync to contact a remote system: using a remote-shell program as the  transport  (such  as
       ssh  or rsh) or contacting an rsync daemon directly via TCP.  The remote-shell transport is used whenever the source or des-
       tination path contains a single colon (:) separator after a host specification.  Contacting an rsync daemon directly happens
       when  the  source or destination path contains a double colon (::) separator after a host specification, OR when an rsync://
       URL is specified (see also the "USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION" section for an exception to  this
       latter rule).

       As a special case, if a single source arg is specified without a destination, the files are listed in an output format simi-
       lar to "ls -l".

       As expected, if neither the source or destination path specify a remote host, the copy occurs locally (see also the  --list-
       only option).

SETUP
       See the file README for installation instructions.

       Once installed, you can use rsync to any machine that you can access via a remote shell (as well as some that you can access
       using the rsync daemon-mode protocol).  For remote transfers, a modern rsync uses ssh for its  communications,  but  it  may
       have been configured to use a different remote shell by default, such as rsh or remsh.
The remote-shell transport is used whenever the source or destination path contains a single colon ( separator after a host specification. So I believe that is what happened in your case.
 
Old 12-20-2006, 06:49 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
My "man rsync" continues:
Quote:
Finally, it is possible to use a remote-shell transport to contact a remote host and then to spawn a single-use rsync daemon. This allows the use of some of the daemon features (such as named modules) without having to run a daemon as a service. To achieve this, invoke rsync with an explicit --rsh=COMMAND (aka "-e COMMAND") option combined with either the source or destination path specified as an rsync daemon (i.e. either a :: separator or an rsync:// URL). In this case, rsync contacts the remote host specified using the specified remote shell, and then starts a single-use rsync daemon to deal with that copy request. See the section "CONNECTING TO AN RSYNC DAEMON OVER A REMOTE SHELL PROGRAM" below.
Is this the "somewhere" where you read about -e ssh?
 
Old 12-20-2006, 12:35 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
I read about the -e ssh on some tutorial that I googled up. So I see that it makes no difference if I use -e ssh or not, other than using the remote shell, which happens to be the same on my local end. I am using both Ubuntu 6.10 on both computers.
 
  


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
SSH issue ""Server unexpectedly closed network connection" Errsta_Fonzarelli Linux - Software 12 05-24-2010 02:35 PM
Why does "crond" sleep and "ssh" hung up? Chowroc Linux - Networking 0 01-12-2006 12:24 AM
SSH/rsync "Connection reset by peer" hamish Linux - Networking 6 12-10-2005 06:09 AM
"Prevent firmware from being built" safe to uncheck in kernel config? rollo Linux - General 0 10-28-2005 07:16 PM
Is it safe to "apt-get upgrade" whilst running gnome? f0rmula Linux - Software 2 12-06-2004 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:44 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