Re: scp or ssh transfert



On 4 Sep, 10:36, Miss Terre <M...@xxxxxx> wrote:
Hi,

is there a way to lock the way of a transfer in scp ?

I mean, with a server A and B, is there a way, connecting from A to B,
to allow data going from A to B but preventing transfers from B to A ?
(the same way as ftp get/put does)
Maybe with latest sftp release ?

Thanks

Well, you could set the file ownership on A to prevent the users on B
from being able to modify the files. Have them do downloads with a
specific "download only" account and a set of user-supplied SSH keys,
and you should be good.

But for this kind of access control, SSH is often not your best bet. I
keep saying this, but WebDAV over HTTPS works quite well and is well
supported, and provides protection against symlink oddness that SCP
does not. There's also rsync, or rsync over SSH: I suspect you could
tunnel rsync over SSH to provide exactly this kind of access.

.



Relevant Pages

  • Re: Backup?
    ... Zur Verfügung stehen FTP, SSH, SCP und RSYNC. ... Es geht auch mit SSH oder SCP. ... welche Daten bereits per FTP übertragen wurden? ...
    (de.comp.os.unix.linux.misc)
  • Re: Linux File Transfer (not ftp)
    ... I agree completely that rsync is a better tool for most jobs like this ... and use it all the time myself, while I only rarely use scp. ... The -essh is now optional if all you want is straight ssh. ... They dropped the rsh transport some time ago although you ...
    (Fedora)
  • Re: Copy mailertable.db access.db generics.db etc etc ....
    ... find I am I complete rookie when it comes to scp and rsync. ... use rsync with ssh or scp with ssh and thats as far as I get. ... I use cfengine here so no cron job is needed, but scp and rsync will work fine along with the cron process. ...
    (comp.mail.sendmail)
  • Re: SCP OR RSYNC
    ... > Just wondering if somebody can tell me the pros and cons of SCP and ... > RSYNC over SSH. ... potential attack that requires lots of data to obtain some sort of ...
    (comp.os.linux.security)
  • Re: SCP OR RSYNC
    ... > Just wondering if somebody can tell me the pros and cons of SCP and ... > RSYNC over SSH. ... If you have other suggestions besides SCP and RSYNC i'm ...
    (comp.os.linux.security)