1 .\" Copyright (c) 2001 Mark R V Murray
2 .\" All rights reserved.
3 .\" Copyright (c) 2001-2003 Networks Associates Technology, Inc.
4 .\" All rights reserved.
6 .\" This software was developed for the FreeBSD Project by ThinkSec AS and
7 .\" NAI Labs, the Security Research Division of Network Associates, Inc.
8 .\" under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
9 .\" DARPA CHATS research program.
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
19 .\" 3. The name of the author may not be used to endorse or promote
20 .\" products derived from this software without specific prior written
23 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 .\" $FreeBSD: src/lib/libpam/modules/pam_ssh/pam_ssh.8,v 1.13 2004/07/02 23:52:18 ru Exp $
36 .\" $DragonFly: src/lib/pam_module/pam_ssh/pam_ssh.8,v 1.1 2005/07/12 23:26:49 joerg Exp $
43 .Nd authentication and session management with SSH private keys
53 authentication service module for PAM,
55 provides functionality for two PAM categories:
57 and session management.
60 parameter, they are the
65 .Ss SSH Authentication Module
68 authentication component
69 provides a function to verify the identity of a user
70 .Pq Fn pam_sm_authenticate ,
71 by prompting the user for a passphrase and verifying that it can
72 decrypt the target user's SSH key using that passphrase.
74 The following options may be passed to the authentication module:
75 .Bl -tag -width ".Cm use_first_pass"
77 If the authentication module
78 is not the first in the stack,
80 obtained the user's password,
82 to authenticate the user.
84 the authentication module returns failure
85 without prompting the user for a password.
86 This option has no effect
87 if the authentication module
88 is the first in the stack,
89 or if no previous modules
90 obtained the user's password.
92 This option is similar to the
95 except that if the previously obtained password fails,
96 the user is prompted for another password.
98 .Ss SSH Session Management Module
101 session management component
102 provides functions to initiate
103 .Pq Fn pam_sm_open_session
105 .Pq Fn pam_sm_close_session
108 .Fn pam_sm_open_session
109 function starts an SSH agent,
110 passing it any private keys it decrypted
111 during the authentication phase,
112 and sets the environment variables
115 .Fn pam_sm_close_session
116 function kills the previously started SSH agent
120 The following options may be passed to the session management module:
121 .Bl -tag -width ".Cm want_agent"
123 Start an agent even if no keys were decrypted during the
124 authentication phase.
127 .Bl -tag -width ".Pa $HOME/.ssh/identity" -compact
128 .It Pa $HOME/.ssh/identity
130 .It Pa $HOME/.ssh/id_rsa
132 .It Pa $HOME/.ssh/id_dsa
142 module was originally written by
144 .An "Andrew J. Korty" Aq ajk@iu.edu .
145 The current implementation was developed for the
148 ThinkSec AS and NAI Labs, the Security Research Division of Network
149 Associates, Inc.\& under DARPA/SPAWAR contract N66001-01-C-8035
151 as part of the DARPA CHATS research program.
152 This manual page was written by
153 .An "Mark R V Murray" Aq markm@FreeBSD.org .