Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: sftp in shell script

From: Greg A. Woods <woods(at)weird.com>
Date: Tue Nov 05 2002 - 22:54:39 EST

[ On Friday, November 1, 2002 at 14:54:25 (+0000), Conor Daly wrote: ]
> Subject: Re: sftp in shell script
>
> On Wed, Oct 30, 2002 at 07:58:02PM +0100 or so it is rumoured hereabouts,
> Gerhard Dieringer thought:
> > Hi,
> >
> > is it possible to answer the password prompt of sftp in a shell-scrpt?
> >
> > echo my_password | sftp host_name
> >
> > does not work.
> >
> > I also didn't find a -pw option.
>
> AFAICT, you need an expect wrapper.

Putting the password in an expect script is silly.

> Otherwise, set up non-interactive
> authentication.

... and use scp, not that silly interactive sftp interface.

-- 
								Greg A. Woods

+1 416 218-0098;            ;           
Planix, Inc. ; VE3TCP; Secrets of the Weird 
Received on Sat Nov 9 08:25:43 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:51 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library