how to do ssh authentication using pam?
2003-01-03 17:04:13 GMT
I need to execute a series of commands using ssh in c code like the
following, but I want to do authentication or input password only once in
the beginning. Will pam help in this case ? Please show some c code. Thank
you.
int main(int argc, char** argv)
{
char* arg_list[] = {
"ssh",
"user <at> host",
"ls",
NULL
};
/* Now execute ssh */
execvp("ssh", arg_list);
}
Hanzhou zhang
RSS Feed