Re: ftp true sftp
From: Aaron Drew (ripper_at_internode.on.net)
Date: 06/22/04
- Previous message: Matt Perry (CometSite): "Problems with Reflections SSH client and OpenSSH 3.6.1p2 server"
- In reply to: diego.veiga_at_embraer.com.br: "Re: ftp true sftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: secureshell@securityfocus.com Date: Tue, 22 Jun 2004 16:23:09 +1000
Tried 'expect'? As a quick mock up (untested), try this.
#!/usr/bin/expect
spawn sftp
set password [lindex $argv 0]
expect "password"
sleep 0.2
send "$password\r"
expect "sftp>"
sleep 0.2
send "get xxx"
expect "sftp>"
sleep 0.2
send "quit"
expect eof
On Mon, 21 Jun 2004 11:15 pm, diego.veiga@embraer.com.br wrote:
> Hi Greg,
>
> I realy need to pass the passworld in stdin, like ftp.
> if a create a key it will be necessarily without passworld. am i right?
>
> regards,
>
> Diego Brito Veiga
> Technical Publications
> Phone: +55 (12) 39274293
> Fax: +55 (12) 39273342
>
> |---------+---------------------------->
> |
> | | Greg Wooledge |
> | | <wooledg@eeg.ccf.|
> | | org> |
> | |
> | |
> | |
> | | 21/06/2004 09:26 |
> |
> |---------+---------------------------->
> |
> >------------------------------------------------------------------------
> >-----------------------------------------------------------------------|
> >
> | To: diego.veiga@embraer.com.br
> | |
> | cc: secureshell@securityfocus.com
> | |
> | Subject: Re: ftp true sftp
> | |
> |
> >------------------------------------------------------------------------
> >-----------------------------------------------------------------------|
>
> On Thu, Jun 17, 2004 at 04:55:13PM -0300, diego.veiga@embraer.com.br wrote:
> > does anybody know if the sftp has the same option as ftp -n "auto-login"
> >
> > ftp -n machine << eoc
> > user username password
> > quit
> > eoc
>
> Just use RSA/DSA public key authentication. See "man ssh-keygen" for
> details.
-- - Aaron "Today's mighty oak is just yesterday's nut that held its ground."
- Previous message: Matt Perry (CometSite): "Problems with Reflections SSH client and OpenSSH 3.6.1p2 server"
- In reply to: diego.veiga_at_embraer.com.br: "Re: ftp true sftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|