mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-17 11:17:05 +02:00
https://github.com/jirutka/ssh-getkey-ldap A simple script to be used as AuthorizedKeysCommand in OpenSSH server to look up user's public keys in LDAP.
14 lines
271 B
Bash
14 lines
271 B
Bash
#!/bin/sh
|
|
|
|
cat <<EOF 1>&2
|
|
*
|
|
* If you want OpenSSH server to look up user's public keys in LDAP,
|
|
* add the following lines to /etc/ssh/sshd_config and reload sshd:
|
|
*
|
|
* AuthorizedKeysCommand /usr/bin/ssh-getkey-ldap
|
|
* AuthorizedKeysCommandUser nobody
|
|
*
|
|
EOF
|
|
|
|
exit 0
|