table of contents
PAM_SSHAUTH(8) | System Manager's Manual | PAM_SSHAUTH(8) |
NAME¶
pam_sshauth - PAM module which authenticates against an ssh server
SYNOPSIS¶
pam_sshauth.so [debug] [nostrict] [shm_askpass] [authtries=tries] [try_first_pass] [host=host] [port=port]
DESCRIPTION¶
pam_sshauth is a PAM module that can be used to authenticate a user based on whether they can ssh into an external machine. It is written using sshlib.
The following PAM environment list variables are set by the module: PAM_SSHAUTH_HOST and PAM_SSHAUTH_PORT. Both of these reflect what was passed on the PAM command line to the module.
The module will attempt to initiate an SSH session with the host specified. It will support public-key, simple password, and keyboard-interactive authentication methods. Note that, in order for keyboard-interactive methods to work, the SSH server must have enabled ChallengeResponseAuthentication in it's configuration. This would be needed if you'd like the pam_sshauth module to handle password expiry messages when talking to the SSH server.
OPTIONS¶
debug
nostrict
shm_askpass
host=host
port=port
authtries=num
try_first_pass
MODULE TYPES PROVIDED¶
Only the auth module type is provided.
RETURN VALUES¶
PAM_SUCCESS
PAM_AUTH_ERR
PAM_SYSTEM_ERR
EXAMPLES¶
For an authentication line:
auth required pam_sshauth.so debug nostrict host=192.168.0.254 port=22
SEE ALSO¶
FILES¶
/etc/ssh/ssh_known_hosts
AUTHOR¶
pam_sshauth was written by Scott Balneaves <sbalneav@ltsp.org>.
2015-07-02 |