David Cimbůrek


Nové obrázky

Kluci si to samozřejmě rozdělili a spí na střídačku. Ten je ale malinkej! Táta na plný úvazek. Kubík se prokopává rád, narozdíl od Matyáše v jeho věku. Naše dvě miminka. Zívanec po svačině.

Počasí v Brně



Jsou okraje lavóru přes které skořápka se svíčkou nemůže.
Jsou okovy vzpomínek přes které duše dál klopýtat nemůže.
Jsou brány a dvířka a zdi přes které může se tam – zpátky se nemůže.
Jsou okovy vzpomínek přes které duše dál klopýtat nemůže.

— Mňága a Žďorp

Secure netrw

1. září 2011, 11:09 | IT | Dave

Download – Readme – ChangelogDetailní popis


Secure-netrw is a simple (but powerful) tool for transporting data over the
internet with user and data authentication support.
It's main purpose is to simplify and speed up file transfers to
hosts without an FTP server. It can also be used for uploading data to
some other user. It is something like one-way netcat (nc) with some nice
features concerning data transfers. Netrw can compute and check message
digest (MD5, SHA-1, and some others) of all the data being transferred, it
can also print information on progress and average speed. At the end it
sums up the transfer.

Typical usage of netrw tool

Let's suppose you want to send a file named data.zip from host.domain.org
to server.somewhere.net. There are several ways how this can be done. The
first and the second example are the same for Unix-like OSs as well as for
Windows "OS". In case of Windows, it's better and safer to use -i and -o
parameters rather than I/O redirection. The third example is only usable on
Unix-like systems because Windows (not speaking about cygwin and other
similar tools) has no ssh.

* basic and the most usual scenario:
1. on server.somewhere.net run

$ netread 1234 >data.zip
$ netread -o data.zip 1234

2. on host.domain.org run

$ netwrite server.somewhere.net 1234 data.zip
$ netread -f server.somewhere.net -o data.zip 1234

* when you are both writer and reader, you can run the following
commands on one of the two machines only:
* on host.domain.org run

$ ssh server.somewhere.net 'netread 1234 >data.zip' &>/dev/null &
$ netwrite server.somewhere.net 1234 data.zip 2>/dev/null &
$ ssh host.domain.org 'netwrite server.somewhere.net 1234 | netwrite server.somewhere.net 1234

* Windows: first you have to compress those files into one file (e.g.,
using WinZip), send the compressed file to the remote host (as it is
described above) and there you have to uncompress it.

Secure-netrw features
* At first, every user has to initialize his global password and (optionaly)
his name:
$ netread -g
$ netwrite -g


$ netread -e
$ netwrite -e

* When you want to, you can store information about your communication partner:

$ netread -n alice@host.domain.org 1234
$ netwrite -n alice@host.domain.org 1234

Together with these data program will ask interactively for password which will
be used for communication with this side.

* Now you can start the authenticated trasfer:
1. on server.somewhere.net run

$ netread -a alice@host.domain.org 1234 >data.zip
$ netread -a alice@host.domain.org -o data.zip 1234

2. on host.domain.org run

$ netwrite -a bob@server.somewhere.net 1234

Download – Readme – ChangelogDetailní popis

Žádné komentáře »

No comments yet.

Leave a comment

Copyright © 2009–2015 David Cimbůrek, david.cimburek (at) gmail.com