PUTTY (plink) File transfer
Hello. I am dealing with a floppy disk w/ a tar archive on it (created with the command "tar -cf /dev/sdb filename".
I have a linux box that is accepting the diskette, and a windows box that needs the data.
I need to ssh into the linux box, extract the files from /dev/sdb, and transfer them back into the local windows box. or convert to a zip file, and transfer that instead of individual files.
Cygwin is not really an option. It is too extensive of an application, and security is more comfertable w/ simple single-use applications. Instead, i am trying to use PUTTY.
Right now, i have the command:
"plink.exe -l username -pw password hostname cat /dev/sdb > newtar.tar"
This goes to the remote linux box and copies the floppy drive to the local windows box.
A) I would like to avoid dd and cat directly from the device -- it is very slow compared to tar -xf on the same disk. (5 seconds vs 30)
Does someone know a way to (using putty preferrably)
a)ssh into the linux box
b)extract the contents of a tar file
c)direct the output of that extract into a file (or files) on the local windows box
Edit: While im asking this...
I also need to do the exact reverse. (take file(s) on the windows box, tar -cf it to /dev/sdb on the linux box)
Last edited by Izzmit; 04-08-2013 at 02:09 PM.