-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option -U for customizing authorized_keys path
This patch adds support for the new command line flag -U which allows one to customize the location of the file containing the authorized keys. This is usefull when running several unrelated and isolated SSH services on one machine, using different sets of authentication keys. The new -U flag accept both absolute and relative paths. When a relative path is used it is appended to the user home directory. Authentication fails when any intermediate directory between the user home and the location of the file (both inclusive) is group or world writeable. When an absolute directory is given all the ancestor directories are checked until some common parent between the authorized keys path and the user home (up to the root directory) is reached. For instance, if home is '/home/bar', and the authorized keys path given is '/home/root/.ssh/authorized_keys', the objects checked are '/home/root/.ssh/authorized_keys', '/home/root/.ssh', '/home/root' and '/home'.
- Loading branch information
Showing
4 changed files
with
59 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters