I need to setup a ssh server that way, that it will accept password authentication only when there is no key added. So when a new user is created he can copy his key by password-based authentication.
|
|
It is not possible with pure openssh. But you might be able to make it working using PAM. Conceptually, you should be able to
I didn't test it, but you should be able to make up missing bits, if some. |
|||
|
|