> --- will hill <[EMAIL PROTECTED]> wrote:
> > 
> > I've got two Debian boxes, hesiod and nestor, both
> > of which have ssh.  To get files from nestor to
> > hesiod I get a command prompt and type:
> > 
> > sftp hesiod

I've gotten so used to just using scp, i don't have much use for sftp 
anymore.  scp is much more convienient from the command line.  Like if you 
wanted to move your docs/ folder from one machine to your home dir on 
another,

scp -r ~/docs [EMAIL PROTECTED]:docs

or something similar.  Also note that will some shell magic, you can use 
ssh as a generic transport (this is what rsync does).  So if you want to 
copy /usr2 to another box

cd /usr2; tar cf - . | ssh [EMAIL PROTECTED] '(cd /usr2; tar xf -)'

Or like the other day, i had to dump an image of a DDS tape to a linux box 
to use GNU tar.  The tape drive was on an AIX box, and AIX tar didn't 
read the SCO tar file.  Rather than move the tape drive, or install GNU 
tar on AIX, i just took a dd image of the tape:

dd if=/dev/rmt0 | ssh [EMAIL PROTECTED] 'cat - > /usr2/dds4.img'

Neat stuff.

-ray


Reply via email to