[aklug] Re: Nerdy cross-machine file transfer methods.

From: Marc Grober <marc@interak.com>
Date: Tue Dec 01 2009 - 17:58:25 AKST

BTW, if you want to explore doing things the "expect" way I can loan
you the O'Reilly text

On Dec 1, 2009, at 11:34 AM, Shane Spencer <shane@bogomip.com> wrote:

> I'd love to start a method on nerdy terminal based file transfer
> methods. I have two to get started.
>
> First is base64, tar, and a copy/paste buffer like seen in X11 or
> screen.
>
> Source Machine (run command then copy output of base64 to a clipboard
> of some sort):
>
> --------
> spencersr@undertow:~$ sudo tar cj /etc/default/ | base64
> tar: Removing leading `/' from member names
> QlpoOTFBWSZTWSknZqgAIBN////wBEZe////v///+v////
> XIQEgAoIAGQAohiAhCEcAYYC77vvN9
> ny+9wfEULXuSkvLKCiFJFUQ8EAPXe5W7MdaD03vQwUCogoV0N2u+
> +9XWRVAV7GocAD03VfdztvO2
> ...
> 65aMVmqLTbJz8wRFfdD4QqTln1H5vbAKog9zBLfhf9RZUJVxerAYyyn6X4gFEUy6gEv
> +LuSKcKEg
> Uk7NUA==
> --------
>
> Destination Machine (run command then paste into the terminal, finish
> with ctrl-d):
>
> --------
> spencersr@lateralus:/tmp$ base64 -d | sudo tar xfvj - -C /tmp/
> QlpoOTFBWSZTWSknZqgAIBN////wBEZe////v///+v////
> XIQEgAoIAGQAohiAhCEcAYYC77vvN9
> ny+9wfEULXuSkvLKCiFJFUQ8EAPXe5W7MdaD03vQwUCogoV0N2u+
> +9XWRVAV7GocAD03VfdztvO2
> ...
> 65aMVmqLTbJz8wRFfdD4QqTln1H5vbAKog9zBLfhf9RZUJVxerAYyyn6X4gFEUy6gEv
> +LuSKcKEg
> Uk7NUA==
> etc/default/
> etc/default/console-setup
> ...
> etc/default/openvpn
> etc/default/ebtables
> --------
>
> Second is using screen and z-modem.
>
> Start up screen on the local machine after making sure the lrzsz
> package is installed on both machines. Once screen is started press
> 'ctrl-a' then ':' and type 'zmodem catch' to enable automatic zmodem
> transfer detection.
>
> Then secure shell to another box and run 'sz' on a file you want
> transfered, the output should look a little like this:
>
> --------
> spencersr@undertow:~$ sz
> googleearth_5.0.11733.9347+0.5.4.1-1_amd64.deb
> rz
> :!!! rz -vv -b -E
> Receiving: googleearth_5.0.11733.9347+0.5.4.1-1_amd64.deb.0
> Bytes received: 25913236/25913236 BPS:8793256
>
> Transfer complete
> --------
>
> I wanna know what the rest of you do. I often operate this way when I
> need to do a root to root transfer when the root user is not
> accessible via SSH due to security limits but I can get a root shell
> on both machines.
>
> - Shane
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Dec 1 17:59:13 2009

This archive was generated by hypermail 2.1.8 : Tue Dec 01 2009 - 17:59:13 AKST