【问题标题】:how can I change sshd use another pam configuration in /etc/pam.d?如何更改 sshd 使用 /etc/pam.d 中的另一个 pam 配置?
【发布时间】:2013-11-26 22:07:41
【问题描述】:

我不想在服务器上打开另一个sshd,旧的使用默认设置,新的使用pam模块

现在我添加一个 /etc/ssh/sshd_config2

我想我应该添加一个文件 /etc/pam.d/sshd2

如何配置 sshd 以使用 /etc/pam.d/sshd2?

【问题讨论】:

    标签: ssh pam


    【解决方案1】:

    我们可以

    ln -s /usr/sbin/sshd /usr/sbin/sshd2
    

    启动 /usr/sbin/sshd2 将使用 /etc/pam.d/sshd2 中的配置

    【讨论】:

      猜你喜欢
      • 2022-08-11
      • 2016-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多