Reputation: 877
I wan't to open another sshd on the server, the old one use default setting, and the new one use pam module
now I add an /etc/ssh/sshd_config2
and I think I should add a file /etc/pam.d/sshd2
how can I config sshd to use /etc/pam.d/sshd2?
Upvotes: 0
Views: 1196
Reputation: 877
we can just
ln -s /usr/sbin/sshd /usr/sbin/sshd2
and start /usr/sbin/sshd2 will use the config in /etc/pam.d/sshd2
Upvotes: 1