Re: HiddenStore option may be useful

This is a discussion on Re: HiddenStore option may be useful within the OpenSSH Development forums, part of the Networking and Network Related category; On Mon, Apr 16, 2007 at 07:45:48AM +1000, Darren Tucker wrote: <snip> > Do you have ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-15-2007
William Ahern
 
Posts: n/a
Default Re: HiddenStore option may be useful

On Mon, Apr 16, 2007 at 07:45:48AM +1000, Darren Tucker wrote:
<snip>
> Do you have control over the clients? If so:
>
> 3. Use sftp to upload the file with a temporary name then rename it when
> it's complete. Something like this (untested):
>
> sftp -b /dev/stdin server.example.com << EOD
> put myfile.txt .myfile.txt
> rename .myfile.txt myfile.txt
> EOD


Maybe this, in case clients could concurrently upload different versions of
the same files:

SUFFIX="$(hexdump -n8 -e '8/1 "%02X"' /dev/urandom)"

sftp -b /dev/stdin server.example.com <<EOD
put myfile.txt .myfile.txt.${SUFFIX}
rename .myfile.txt.${SUFFFIX} myfile.txt
EOD
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0