Programmatic interface to ssh

ux9i_at_yahoo.com
Date: 07/20/05


Date: 20 Jul 2005 08:08:09 -0700

I'm modifying a program that previously used a telnet connection to
communicate to a server. The program had control of input and output
to the telnet session, as if a user was typing at a command prompt. In
general a program using telnet is sometimes called an MML or CLI
interface [man-machine language or command-line interface].

My mission is to replace telnet with ssh. I have searched this group
and the OpenSSH and OpenSSL sites for some time and there seems to be
no library that allows a program to access an ssh shell.

One idea I had was to pore over Putty code to see how the Putty program
uses OpenSSL or OpenSSH libraries to achieve a command-line interface,
and figure out how to rewire it so the program has control of input and
output.

I had hoped that when the program runs it could use the ~/.ssh
directory files or else fallback to password login to the remote
server.

Is there a good way to program to ssh? There seems to be no library
for a program to do this sort of thing.



Relevant Pages

  • Re: telnet vs Openssh
    ... Make a dialup connection to your server and check the differences, ... telnet is just fine. ... >>This may be why I am seeing a slow down in screen drawing with Openssh. ...
    (comp.unix.sco.misc)
  • SUMMARY-REDUX: User not showing up.....
    ... So the original problem was that after logging into a server with ... openssh, the user would not show up using either "w" or "who". ... What is somewhat interesting is that testing showed that telnet, ... would just let you log in right away, allowing utmpx to take its time to ...
    (SunManagers)
  • Re: My D70 got Smashed
    ... Well I just use telnet to issue NNTP commands to the server and read ... I find it gives me complete control. ...
    (rec.photo.digital.slr-systems)
  • Re: My D70 got Smashed
    ... Well I just use telnet to issue NNTP commands to the server and read ... I find that using Outlook Express for Usenet is the only "real" reader capable of delivering full control. ...
    (rec.photo.digital.slr-systems)
  • Telnetlib & Term Types
    ... I'd like to do some tweaks on a telnet session as I have no control over ... However I cannot correctly negotiate a telnet connection to the server. ...
    (comp.lang.python)