RE: automating ssh connection

From: Mark Paulus (
Date: 05/04/04

  • Next message: Darren Tucker: "Re: SSh internal window size.. (again)"
    Date: Tue, 04 May 2004 10:44:49 -0600

    Am I missing something here, or couldn't he just follow the
    template provided in ssh.c? There he could/should see
    exactly how complicated this process might be.

    -----Original Message-----
    From: Bob Rasmussen []
    Sent: Monday, May 03, 2004 1:47 PM
    To: Satyanarayana, Dintakurthi
    Subject: Re: automating ssh connection

    On Fri, 30 Apr 2004, Satyanarayana, Dintakurthi wrote:

    > I want to open ssh connection to a remote server from
    > a c/C++ program. Once the connection is opened, I want
    > to exchange data from within the program itself. I
    > guess if we have ssh + socket libraries we can do it
    > just like opening a tcp socket and using read, write
    > calls to get and send data. Does anyone aware of
    > socket library that works with SSH ?
    > Is there any other alternative that helps in
    > establishing ssh connections ? One thing I certainly
    > want to do while opening ssh connection is using a
    > crypto algorithm (3des/blowfish) of my choice.
    > Please suggest any pointers.

    First, it would help to know if you are talking about running on a
    Unix/Linux system or a Windows system (or something else).

    It is not as simple as opening a socket. The authentication and encryption
    routines are quite involved.

    Your best approach might be to use a forwarded port. That is, have an SSH
    connection already in place, with a forwarded port that you can use in your

    ....Bob Rasmussen, President, Rasmussen Software, Inc.

    personal e-mail:
     company e-mail:
              voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
                fax: (US) 503-624-0760

  • Next message: Darren Tucker: "Re: SSh internal window size.. (again)"