Using ssh in C code

This is a discussion on Using ssh in C code within the Linux Programming forums, part of the Platform Specific Boards category; Hi, Iam writing a C program, which should use "ssh" to login to another computer execute some steps and logout ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    4

    Using ssh in C code

    Hi,
    Iam writing a C program, which should use "ssh" to login to another computer execute some steps and logout and come back to my own computer.

    if I use system command eg system ("ssh IP");
    iam able to go to different PC but iam not able to come out as all further system commands dont execute .

    Is their any way I can do it ?

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    Have you looked at the OpenSSL-dev library. Have a look at their home page. You should get some good API's which you could use!!

    ssharish
    Last edited by ssharish2005; 09-27-2008 at 06:55 AM.

  3. #3
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  2. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 04:39 PM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 05:05 PM

Tags for this Thread


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