>From: sasi kanth <[EMAIL PROTECTED]>
>Subject: Re: [TwinCLinG] sftp server:
>Date: Wed, 17 May 2006 10:06:23 +0100 (BST)
>To: [email protected]
>
>Sorry for not being clear.
>
>sftp client program prompts for the password from the
>/dev/tty (similar to passwd). So redirecting a file to
>stdin does not work. So if you want to work with such
>interactive programs 'expect' is only option(correct
>me if I am wrong). 'expect' provides psuedo terminal
>and can be controlled programatically.
The main reason why you are using sftp is for security. Why would you
want a script with a password somewhere around.
if the script is run via shell manually, use a ssh-key with a passphrase
and use ssh-agent.
if the script is run via cron, use a passphrase less ssh key, and have
a restrict on the authorized keys to specify which host and which
command can it run.
>
>If you are using password authentication you can not
>use bach mode. See non-interactive authentication for
>if you want to use batch mode.
Exactly, I did not want to use password authentication.
>
>-sasi
>
>--- [EMAIL PROTECTED] wrote:
>
>> On Tue, May 16, 2006 at 04:33:18PM +0100, sasi kanth
>> wrote:
>> > You may also want to see 'expect' program.
>> > If you are ok with a perl script you can use
>> Expect
>> > module or better Net::SFTP.
>>
>> Why would one need expect? Care to explain
>>
>> -balaji
>>
>> >
>> > thanks,
>> > -sasi
>> >
>> > --- Balaji Narayanan <[EMAIL PROTECTED]> wrote:
>> >
>> > > >>>>> "mantha" == mantha bhadram
>> > > <[EMAIL PROTECTED]> writes:
>> > >
>> > > mantha> Hai !!!! I need the shell script to
>> > > connect to a secure
>> > > mantha> ftp server.....
>> > >
>> > > man sftp and check for the -b (batch file
>> option).
>> > > Also you could scp directly.
>> > >
>> > > mantha> Please.. it is urgent..
>> > >
>> > > This is a mailing list and this is not your help
>> > > desk. Please do some
>> > > homework before asking questions.
>> > >
>> > > hth
>> > > -b-
>> > >
>> > >
>> > >
>> > > --
>> > > http://balajin.net/blog
>> > >
>> > > BOFH excuse #294:
>> > >
>> > > PCMCIA slave driver
>> > >
>>
>>
>> ------------------------ Yahoo! Groups Sponsor
>> --------------------~-->
>> Everything you need is one click away. Make Yahoo!
>> your home page now.
>>
>http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/0XFolB/TM
>>
>--------------------------------------------------------------------~->
>>
>>
>> -----------------------------------------------
>> Next Meeting as on our Website:
>> http://ilughyd.org.in
>> -----------------------------------------------
>> Yahoo! Groups Links
>>
>>
>> [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
>
>
>
>-----------------------------------------------
>Next Meeting as on our Website: http://ilughyd.org.in
>-----------------------------------------------
>Yahoo! Groups Links
>
>
>
>
>
>
>
---end quoted text---
--
Now, let's SEND OUT for QUICHE!!
-----------------------------------------------
Next Meeting as on our Website: http://ilughyd.org.in
-----------------------------------------------
YAHOO! GROUPS LINKS
- Visit your group "ilughyd" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
