2014-11-15 14:00:19 +00:00
|
|
|
Port 22
|
|
|
|
|
2014-12-13 18:52:56 +00:00
|
|
|
{% if ssh_ldap %}
|
|
|
|
AuthorizedKeysCommand /usr/lib/openssh-ldap-helper/openssh-ldap-helper
|
|
|
|
AuthorizedKeysCommandUser root
|
|
|
|
{% else %}
|
2014-11-15 14:00:19 +00:00
|
|
|
AuthorizedKeysFile .ssh/authorized_keys
|
2014-12-13 18:52:56 +00:00
|
|
|
{% endif %}
|
2014-11-15 14:00:19 +00:00
|
|
|
|
|
|
|
PasswordAuthentication no
|
|
|
|
ChallengeResponseAuthentication no
|
|
|
|
|
|
|
|
UsePAM yes
|
|
|
|
|
|
|
|
PrintMotd no
|
|
|
|
UsePrivilegeSeparation sandbox
|
|
|
|
Subsystem sftp /usr/lib/ssh/sftp-server
|