Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm looking for API that lets me connect into unix machine by SSH

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
Hi,
Is there an API/SDK/dll that lets me run commands on remote machine over SSH, by a command-line?

Thanks in advance!
 
Current Windows versions do not contain any SSH support out of the box.

You could Google for an SSH client component, or you could look at running an instance of PLink (which is designed to be "scripted"). To do the latter you'll need to start PLink via CreateProcess() redirecting its standard I/O streams to anonymous pipes that your program handles. This has been covered here and elsewhere many times.

Using an ActiveX component is more straightforward in VB, but I'm unaware of any free component libraries for this purpose. PLink however is free.

If you find a "shell with pipe" or "shellpipe" component it may save you some time debugging the equivalent code yourself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top