LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 12-08-2007, 06:33 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,249

Rep: Reputation: 53
Is there a way to allow a user to rsync files to my server without being able to SSH


Is there a way to allow a user to rsync files to my server without being able to SSH in using SSH keys?
 
Old 12-08-2007, 06:42 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
From "man rsync":
Code:
CONNECTING TO AN RSYNC DAEMON
       It is also possible to use rsync without a remote shell as the transport.  In this case you will directly connect to a remote rsync daemon,  typi‐
       cally  using  TCP  port  873.  (This obviously requires the daemon to be running on the remote system, so refer to the STARTING AN RSYNC DAEMON TO
       ACCEPT CONNECTIONS section below for information on that.)

       Using rsync in this way is the same as using it with a remote shell except that:

       o      you either use a double colon :: instead of a single colon to separate the hostname from the path, or you use an rsync:// URL.

       o      the first word of the “path” is actually a module name.

       o      the remote daemon may print a message of the day when you connect.

       o      if you specify no path name on the remote daemon then the list of accessible paths on the daemon will be shown.

       o      if you specify no local destination then a listing of the specified files on the remote daemon is provided.

       o      you must not specify the --rsh (-e) option.

       An example that copies all the files in a remote module named “src”:

           rsync -av host::src /dest

       Some modules on the remote daemon may require authentication. If so, you will receive a password prompt when you connect. You can avoid the  pass‐
       word  prompt  by  setting the environment variable RSYNC_PASSWORD to the password you want to use or using the --password-file option. This may be
       useful when scripting rsync.

       WARNING: On some systems environment variables are visible to all users. On those systems using --password-file is recommended.

       You may establish the connection via a web proxy by setting the environment variable RSYNC_PROXY to a hostname:port  pair  pointing  to  your  web
       proxy.  Note that your web proxy’s configuration must support proxy connections to port 873.

Last edited by win32sux; 12-08-2007 at 07:15 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync server with ssh transport ! jimmyjiang Linux - Software 8 03-29-2012 05:39 AM
ssh -X user@server works differently from two clients? xp_newbie Linux - Server 3 04-05-2007 11:16 AM
rsync, SSH server on a different port digen Linux - Server 3 03-09-2007 12:34 AM
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 12:10 PM
the user can't connect to server over ssh spotass Linux - Newbie 5 05-31-2004 04:29 AM


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