Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top