[scponly] rsync with scponly on CentOS

GADOT Frank Frank.Gadot at alcatel-lucent.com
Wed Oct 22 15:28:47 EDT 2008


No luck with those one..:

rsync test eduardo at localhost:/home/eduardo/
eduardo at localhost's password: 
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(632)
[sender=3.0.4]

---------------

Oct 22 12:23:10 galaxy sshd[6194]: Accepted password for eduardo from
127.0.0.1 port 42174 ssh2
Oct 22 12:23:10 galaxy sshd[6194]: pam_unix(sshd:session): session
opened for user eduardo by (uid=0)
Oct 22 12:23:10 galaxy scponly[6199]: 3 arguments in total.
Oct 22 12:23:10 galaxy scponly[6199]:   arg 0 is scponly
Oct 22 12:23:10 galaxy scponly[6199]:   arg 1 is -c
Oct 22 12:23:10 galaxy scponly[6199]:   arg 2 is rsync --server -e.s .
/home/eduardo/
Oct 22 12:23:10 galaxy scponly[6199]: opened log at LOG_AUTHPRIV, opts
0x00000009
Oct 22 12:23:10 galaxy scponly[6199]: determined USER is "eduardo" from
environment
Oct 22 12:23:10 galaxy scponly[6199]: retrieved home directory of
"/home/eduardo" for user "eduardo"
Oct 22 12:23:10 galaxy scponly[6199]: setting uid to 502
Oct 22 12:23:10 galaxy scponly[6199]: processing request: "rsync
--server -e.s . /home/eduardo/" 
Oct 22 12:23:10 galaxy scponly[6199]: Using getopt processing for cmd
/usr/bin/rsync  (username: eduardo(502), IP/port: 127.0.0.1 42174 22)
Oct 22 12:23:10 galaxy scponly[6199]: getopt processing returned '?'
(username: eduardo(502), IP/port: 127.0.0.1 42174 22)
Oct 22 12:23:10 galaxy scponly[6199]: getopt processing returned 'e'
(username: eduardo(502), IP/port: 127.0.0.1 42174 22)
Oct 22 12:23:10 galaxy scponly[6199]: option 'e' or a related long
option is not permitted for use with /usr/bin/rsync (arg was .s)
(username: eduardo(502), IP/port: 127.0.0.1 42174 22))
Oct 22 12:23:10 galaxy scponly[6199]: requested command (/usr/bin/rsync
--server -e.s . /home/eduardo/) tried to use disallowed argument
(username: eduardo(502), IP/port: 127.0.0.1 42174 22))
Oct 22 12:23:10 galaxy sshd[6194]: pam_unix(sshd:session): session
closed for user eduardo


=================================================================

rsync test eduardo at localhost:
eduardo at localhost's password: 
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(632)
[sender=3.0.4]

----------------

Oct 22 12:24:27 galaxy sshd[6203]: Accepted password for eduardo from
127.0.0.1 port 47028 ssh2
Oct 22 12:24:27 galaxy sshd[6203]: pam_unix(sshd:session): session
opened for user eduardo by (uid=0)
Oct 22 12:24:27 galaxy scponly[6208]: 3 arguments in total.
Oct 22 12:24:27 galaxy scponly[6208]:   arg 0 is scponly
Oct 22 12:24:27 galaxy scponly[6208]:   arg 1 is -c
Oct 22 12:24:27 galaxy scponly[6208]:   arg 2 is rsync --server -e.s . 
Oct 22 12:24:27 galaxy scponly[6208]: opened log at LOG_AUTHPRIV, opts
0x00000009
Oct 22 12:24:27 galaxy scponly[6208]: determined USER is "eduardo" from
environment
Oct 22 12:24:27 galaxy scponly[6208]: retrieved home directory of
"/home/eduardo" for user "eduardo"
Oct 22 12:24:27 galaxy scponly[6208]: setting uid to 502
Oct 22 12:24:27 galaxy scponly[6208]: processing request: "rsync
--server -e.s . " 
Oct 22 12:24:27 galaxy scponly[6208]: Using getopt processing for cmd
/usr/bin/rsync  (username: eduardo(502), IP/port: 127.0.0.1 47028 22)
Oct 22 12:24:27 galaxy scponly[6208]: getopt processing returned '?'
(username: eduardo(502), IP/port: 127.0.0.1 47028 22)
Oct 22 12:24:27 galaxy scponly[6208]: getopt processing returned 'e'
(username: eduardo(502), IP/port: 127.0.0.1 47028 22)
Oct 22 12:24:27 galaxy scponly[6208]: option 'e' or a related long
option is not permitted for use with /usr/bin/rsync (arg was .s)
(username: eduardo(502), IP/port: 127.0.0.1 47028 22))
Oct 22 12:24:27 galaxy scponly[6208]: requested command (/usr/bin/rsync
--server -e.s .) tried to use disallowed argument (username:
eduardo(502), IP/port: 127.0.0.1 47028 22))
Oct 22 12:24:27 galaxy sshd[6203]: pam_unix(sshd:session): session
closed for user eduardo




:(

 

-----Original Message-----
From: Kaleb Pederson [mailto:kaleb.pederson at gmail.com] 
Sent: Wednesday, October 22, 2008 12:15 PM
To: GADOT Frank
Cc: scponly at lists.ccs.neu.edu
Subject: Re: [scponly] rsync with scponly on CentOS

On Wednesday 22 October 2008 12:03:47 pm GADOT Frank wrote:
> root at galaxy:/usr/local/etc/scponly> rsync debuglevel
> eduardo at localhost:~/
> eduardo at localhost's password:
> invalid characters in scp command!
> here:~/
> try using a wildcard to match this file/directory

It doesn't like the tilde (~) that's present on the server side.  You
could 
try some alternatives:

rsync file user at host:/path/to/home
rsync file user at host:
...

Good luck.

--Kaleb



More information about the scponly mailing list