SSH C programming example

Started by
3 comments, last by Joncombat 16 years, 6 months ago
I am trying to connect to a device that uses SSH protocol using ANSI C. Currently I am uing PUTTY.exe to connect to the device. When connected the device prompts for a user name and password which is easily entered using PUTTY. Once connected I need to type test commands and review the test responses. Does anyone have software (ANSI C) that can connect to the device and send/receive data using the SSH protocol? I am not familiar with SSH protocols or network communication using ANSI C? Thanks in advance! Jon k.
Advertisement
Found this via Google:
http://www.0xbadc0de.be/wiki/libssh:libssh
If you are doing automated connections, you should really look into keys.

You weren't thinking of trying to hard-code login information into the application, or provide it through external configuration file, were you?
The IP address, User name and password are constant.
I am trying to make sense of the softare I dowloaded from http://www.0xbadc0de.be/wiki/libssh:libssh. I unzipped it buy my CVI software does not recognize the file for some reason. The plan was to hard code the information in the software since it is constant and will not change.

This topic is closed to new replies.

Advertisement