![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Using TCP sockets to connect via SSH within a C++ applicationHi ,
I have the following scenario where by I can connect using telnet telnet localhost portnumber However I want to now have the capability to connect via SSH ssh localhost -p port number My application is using the TCP socket connection and works fine for the telnet. I can ssh sucessfully into the localhost w/o supplying a password and this is my o/p. Do I need to put something in my code so that it can do the same .. Please advise . Thanks Code:
Last edited by admin : 19-Sep-2008 at 23:02.
Reason: Please insert your example codes between [CODE] and [/CODE] tags
|
|
#2
|
|||
|
|||
Re: Using TCP sockets to connect via ssh within a c++ applicationSomething else I forgot to add
when I telnet hostname portnumber Trying... Connected to hostname.x.lan. Escape character is '^]'. prompt> with the ssh Code:
It appears the ssh session thats established isn't sending or receiving requests as it hangs not responding . Whereas I would expect the same behaviour from the telnet session returning back to prompt> as requested in the code . Any ideas why I'm not getting this with ssh? Last edited by admin : 19-Sep-2008 at 23:04.
Reason: Please insert your example codes between [CODE] and [/CODE] tags
|
Recent GIDBlog
I?m Home by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BarracudaDrive application server for Linksys NSLU2 | BDG | Computer Software Forum - Linux | 0 | 24-Mar-2008 15:24 |
| Simple Window Application Using MFC | Peter_APIIT | MS Visual C++ / MFC Forum | 6 | 28-Sep-2007 03:38 |
| Application which packages another application with other files. | SharathKA | MS Visual C++ / MFC Forum | 0 | 09-Dec-2006 00:32 |
| Multi-client application using sockets | shereen | Java Forum | 0 | 03-Mar-2006 10:25 |
| Help! Some basal questions about MFC | xutingnjupt | MS Visual C++ / MFC Forum | 1 | 05-Dec-2004 04:38 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The