[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PermitUserEnvironment option forOpenSSH sshd; was Re(2): automating x permission on a file.



peasthope@shaw.ca wrote:
> The PermitUserEnvironment option for the OpenSSH sshd might
> make scp usable after all.  At present the sshd won't allow
> an existing file to be over-written, even when write permission
> is present.

What?  Uhm...  No.  That isn't the way it works.  You can overwrite
files using scp and rsync just fine.  See this example.

  $ cd /tmp
  $ date > foo

  $ scp foo othermachine:/tmp/
  foo                                           100%   29     0.0KB/s 00:00

  $ scp foo othermachine:/tmp/
  foo                                           100%   29     0.0KB/s 00:00

  $ rsync -v foo othermachine:/tmp/
  foo

  sent 67 bytes  received 37 bytes  208.00 bytes/sec
  total size is 29  speedup is 0.28

There isn't any problem overwriting files with scp or rsync.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: