Re: Controlling ssh from an external program

Patrice.Gonthier_at_alcatel.fr
Date: 10/22/04

  • Next message: Darren Tucker: "Re: Logging attempted passwords"
    To: Jerry <juanino@yahoo.com>
    Date: Fri, 22 Oct 2004 10:49:19 +0200
    
    

    Hello Jerry,
    I have almost the same problem

    I need to launch a SSH agent and SSH add and I would like to give the
    passphrase as input (without human interaction) to the SSH-add.

    Do you think NetSSH can help me for this.

    PS: Unfortunately, for this I am running on a Windows.

    Thank you for your help

    Patrice

    Jerry <juanino@yahoo.com> on 21/10/2004 22:10:35

    To: jander@hundredacrewood.org, secureshell@securityfocus.com
    cc:
    Subject: Re: Controlling ssh from an external program

    Oh yes, use perl and Net::SSH::Perl from CPAN.

    It's a pain to build--> many, many requirements, but
    it works very nice for this type of thing. It's a
    complete ssh implementation, you don't even need
    openssh to install it I believe. It can do things
    like go interactive, pass username/password, return
    good return codes, stderr, stdout, etc.

    Contact me off-list if you need help building it.
    It's easier to build on linux than Solaris. But I've
    used it on both.

    Jerry
    QX19

    --- Jeff Anderson <jander@hundredacrewood.org> wrote:

    > Hi -
    >
    > I am working on a linux remote administration tool,
    > and I would like to be
    > able to control ssh/scp via an external program. I
    > know the standard answer
    > to this is to use expect, however this is NOT an
    > option.
    >
    > The next standard answer is to use an empty
    > passphrase or ssh-agent, but I
    > cannot guarantee that the remote system will have a
    > keypair, so I need to be
    > able to fallback on password authentication if that
    > fails. The controlling
    > program needs to be able to feed the password to
    > ssh/scp.
    >
    >
    > Additionally, I can only use an unmodified version
    > of openssh (i.e. whatever
    > version is available on the system that the admin
    > tool is run from).
    >
    > Any ideas?????
    >
    >
    >
    ==========================================================
    > Jeff Anderson
    >
    >

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
     http://mail.yahoo.com


  • Next message: Darren Tucker: "Re: Logging attempted passwords"

    Relevant Pages

    • RE: Controlling ssh from an external program
      ... passphrase could be discovered and the private key would fall into dangerous ... NB the SSH environment strings need to be included in this mixture! ... character as the final character could signify accept from a file. ... Controlling ssh from an external program ...
      (SSH)
    • [Full-Disclosure] RE: RES: Instant Messenger
      ... the SSH headers look like - hense the published algorithm issue) ... for the first char, socket 2 for the second, socket 1 for the third, and so ... On Mon, 13 Sep 2004, Murtland, Jerry wrote: ...
      (Full-Disclosure)
    • apropos last query on last after patching
      ... It seems more people had the same problem, so Jerry received only 1 answer. ... If ssh, this is the answer. ... To check this try telnet or ftp to the machine and you should see correct ... That was my personal findings. ...
      (SunManagers)
    • Re: [SLE] Remote Desktop trouble in SuSE 10.0?
      ... > Thanks Jerry, I followed your suggestions, works fine! ... Please note that there is a Slow-motion "Brute force" attack being made on ssh ... You can use the free ssh client called putty on windows machines to set ...
      (SuSE)
    • Re: More on learning "Public Key Authentication"
      ... > computers in my local network are configured that way. ... > A long passphrase is a good idea but for other reasons. ... I _think_ a passphrase is used merely to verify that a public SSH ... _public_ keys between computers, so I do not even use a public SSH ...
      (comp.sys.mac.system)