RE: how to do ssh authentication using pam?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: how to do ssh authentication using pam?

I don't think PAM would help here..  Each instance of SSH and in turn PAM asks for password separately.  What u might do is get the password yrself { getpass() } and the hack SSH to use this.  Or try using identity keys...

HTH

ajay

-----Original Message-----
From: zhang@csee.wvu.edu [mailto:zhang@csee.wvu.edu]
Sent: Friday, January 03, 2003 12:04 PM
To: pam-list@redhat.com
Subject: how to do ssh authentication using pam?


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@host",
    "ls",
    NULL
  };

  /* Now execute ssh */
  execvp("ssh", arg_list);

}

Hanzhou zhang






_______________________________________________

Pam-list@redhat.com
https://listman.redhat.com/mailman/listinfo/pam-list


[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux