Re: ftp true sftp

From: Aaron Drew (ripper_at_internode.on.net)
Date: 06/22/04

  • Next message: Darren Tucker: "Re: port forwarding without the shell"
    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."
    

  • Next message: Darren Tucker: "Re: port forwarding without the shell"

    Relevant Pages

    • Re: Right! Im officially fed-up now! Self pity - dont read!
      ... > meds Notriptyline and I might as well not have bothered for all the good ... Here's my quit meter so you can see ... > soon I'll start to get tired and go and get some sleep! ...
      (alt.med.fibromyalgia)
    • Re: Access 2007 at Odds with Vista
      ... race condition between the Quit and the launch of Access, ... confirm that failed because I used this structure to slow down the Quit: ... Private Declare Sub Sleep Lib "kernel32" ... I was unaware that the form had a timer before your suggestion. ...
      (microsoft.public.access.modulesdaovba)
    • Re: Access 2007 at Odds with Vista
      ... race condition between the Quit and the launch of Access, ... confirm that failed because I used this structure to slow down the Quit: ... Private Declare Sub Sleep Lib "kernel32" ... I was unaware that the form had a timer before your suggestion. ...
      (microsoft.public.access.modulesdaovba)
    • Re: Insomnia
      ... I have used *melatonin to regulate my internal clock and valerian root to ... quit smoking work - and not make your quit easy either. ... handle on this sleep thingee ASAP. ...
      (alt.support.stop-smoking)
    • Re: INSOMNIA
      ... this,hopefully this is my last quit.I have no problem falling ... About a month after I quit cold turkey, ... essentially got NO sleep for two months. ... I enjoyed the vivid dreams I had after I started taking Zyban, ...
      (alt.support.stop-smoking)