Implement a SSH client

From: Patrick Li (pcwli@shaw.ca)
Date: 04/29/02


From: pcwli@shaw.ca (Patrick Li)
Date: 29 Apr 2002 12:39:46 -0700

Hi,

I need to implement some APIs to enable an application to communicate
with a SSH server. Basically, the APIs will let the application to
run some programs and shell scripts at a remote machine running the
SSH server.

I want to know if there are any SSH implementation that provides
client api interface?

If not, then I think I have to implement something like below.
- open a tcp connection to the SSH server
- perform the handshake
- call the OpenSSL crypto APIs to encrypt and decrypt the message sent
to and receive from the server.
- retreive the return code of the command executed.
- close the connection.

Comments?

Thanks,
Patrick



Relevant Pages

  • Re: Implement a SSH client
    ... >with a SSH server. ... the APIs will let the application to ... which, among other things, includes an SSH client implementation. ...
    (comp.security.ssh)
  • Re: ssh_config question
    ... Instead of opening a TCP connection, ... Your first command does not connect the SSH client to an SSH server; ... connects it to the stdin/stdout of a shell on 192.168.1.1. ... That would explain why it's called "ProxyCommand":) ...
    (comp.security.ssh)
  • Re: SQL Server through SSH
    ... dyndns. ... My SSH server is a ARM cpu based NSLU2 ... Does it "connect" you to some tcp connection and hang ...
    (SSH)