C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-08-2007, 12:17 PM   #1
Registered User
 
Join Date: Jan 2007
Posts: 4
SSH via C program

I need one help on SSH.

How shall i estalblish SSH connection to other machine and send my char *buffer through c program?

somewhere i have read that first we have establish connection to other terminal and then run program. In program, i just have to write char *buffer to stdout and my os will take care of putting this data on SSH channel. Any idea about this?

Yogesh
yogesh3073 is offline   Reply With Quote
Old 01-09-2007, 08:47 AM   #2
Protocol Test Engineer
 
ssharish2005's Avatar
 
Join Date: Sep 2005
Location: fseek(UK)
Posts: 1,324
why do want to do it like that rather than using the functions like send and recv.

ssharish2005
ssharish2005 is offline   Reply With Quote
Old 01-10-2007, 06:37 AM   #3
Registered User
 
Join Date: Jan 2007
Posts: 4
send & recv

send and recv work only with normal TCP/IP socket.

Here I need information on sending data through SSH.

In my C program, how shall I ensure that SSH channel is established? Then how to send data through that channel.

Yogesh
yogesh3073 is offline   Reply With Quote
Old 01-11-2007, 03:29 PM   #4
Registered User
 
Join Date: Apr 2006
Posts: 20
You need a SSH library.
http://www.0xbadc0de.be/libssh:libssh
lawina is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH C Program Joncombat C Programming 1 11-14-2007 09:04 AM
Using variables in system() Afro C Programming 8 07-03-2007 12:27 PM
SSH program afreedboy Tech Board 2 03-18-2005 10:47 PM
My program, anyhelp @licomb C Programming 14 08-14-2001 10:04 PM


All times are GMT -6. The time now is 10:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22