浏览代码

Merge pull request #72 from kyrias/AuthKeysCmd

Add AuthorizedKeysCommand support
master
Forrest 8 年前
父节点
当前提交
8d1e730907
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. +2
    -0
      openssh/files/sshd_config
  2. +2
    -0
      pillar.example

+ 2
- 0
openssh/files/sshd_config 查看文件

@@ -81,6 +81,8 @@
{{ option_default_uncommented('RSAAuthentication', 'yes') }}
{{ option_default_uncommented('PubkeyAuthentication', 'yes') }}
{{ option('AuthorizedKeysFile', '%h/.ssh/authorized_keys') }}
{{ option('AuthorizedKeysCommand', 'none') }}
{{ option('AuthorizedKeysCommandUser', 'nobody') }}

# Don't read the user's ~/.rhosts and ~/.shosts files
{{ option_default_uncommented('IgnoreRhosts', 'yes') }}

+ 2
- 0
pillar.example 查看文件

@@ -21,6 +21,8 @@ sshd_config:
MaxSessions: 10
RSAAuthentication: 'yes'
PubkeyAuthentication: 'yes'
AuthorizedKeysCommand: '/usr/bin/sss_ssh_authorizedkeys'
AuthorizedKeysCommandUser: 'nobody'
IgnoreRhosts: 'yes'
RhostsRSAAuthentication: 'no'
HostbasedAuthentication: 'no'

正在加载...
取消
保存