On Tue, 15 Aug 2000, Sunil K. Vallamkonda wrote:
> Hello,
>
>
> Per openssh-2.1.1p4, man pages for sshd
> $HOME/.ssh/authorized_keys file need to exist for each user
> respectively.
>
> How do I eliminate this restriction and pass file name as a argument
> and/OR even give a different path than above, for sshd to know which
> key pair it should use.
You would need to hack auth-rsa.c around line 134:
/* The authorized keys. */
snprintf(file, sizeof file, "%.500s/%.100s", pw->pw_dir,
SSH_USER_PERMITTED_KEYS);
to build a path to wherever you want to store the keys.
You will also need to modify auth2.c to handle DSA keys. Around line 444:
/* The authorized keys. */
snprintf(file, sizeof file, "%.500s/%.100s", pw->pw_dir,
SSH_USER_PERMITTED_KEYS2);
-d
--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: [EMAIL PROTECTED] (home) -or- [EMAIL PROTECTED] (work)