Hi, Dan!

Sorry, too late in my part of the world to do some serious testing (or
rather, I'm too tired) but I still think you should use scp. On the man page
is says that the option -B   "selects batch mode (so you don't need to give
password...)". Sounds like what you're looking for. I am not sure whether
you can pipe input straight to scp , but why not? Read the man page
carefully and you should find out.

Let me know how you get on and I'll try something myself tomorrow.

Solong,

Olof

----- Original Message -----
From: "Dan" <[EMAIL PROTECTED]>
To: "Olof Liungman" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, December 14, 2000 7:56 PM
Subject: Re: tar via ssh?


> That doesn't work.
> there isn't enough space on the drive to create the tar file.
> I need to pipe the tar command into ssh (or whatever)
> so the file is created on the remote server.
>
> someone said to use:
> tar cvf - | ssh remotehost | dd of=/home/dir/file | tar xvf -
>
> but somehow I don't think that works either.
> One clue someone gave me is that you have to setup ssh so it doesn't
> prompt for a password. But I don't know how to do that either.
>
> Dan.
>
> At 06:48 PM 12/14/2000 -0800, Olof Liungman wrote:
> >I'm used to Sun Solaris and currently I'm booted into Windoze instead of
> >Linux, so I may be wrong... but shouldn't the command format be
> >
> >tar cf - *
> >
> >i.e., "create tar archive (c) by tar:ing all the files in the current
> >directory (*) and send the result to standard output (f -)"? Works on my
Sun
> >box...
> >
> >Secondly, ssh doesn't transfer files, does it? So if you should pipe the
> >output to anything it should be scp, shouldn't it? Though I'm not certain
> >that is the way to do it. My guess is you'd need to write a small shell
> >script that tar:s your files, then copies the tar archive to the remote
> >machine with scp and finally deletes the archive on the local machine.
> >Anyone with a better idea?
> >
> >Solong,
> >
> >Olof
>
>

Reply via email to