[LCP]remote login question

Jessamine jezzy_ph at yahoo.com
Mon Jan 26 15:45:02 UTC 2004


Hi, I was trying to do an ssh remote login using a c
program but I can't seem to get a successful login.
Here is a snippet of the code
I did:

if(!(in=popen("ssh root at localhost.localdomain", "r")))
{
    exit(1);
}

if(!(in=popen("password", "r")))
{
    exit(1);
}

I was able to execute the ssh
root at localhost.localdomain but the problem is that I
can't execute the password, because instead of
entering the command where is says:

password:

the password is being executed in the command promt.
Is there another command I could use so that I would
be able to put the command in the password promt?

Thanks,
Jess




__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/



More information about the linuxCprogramming mailing list