Use cases for different AuthorizedKeysCommand and AuthorizedKeysFile orders

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Before OpenSSH 8, AuthorizedKeysCommand came before
AuthorizedKeysFile. From OpenSSH 8, AuthorizedKeysFile is always
before AuthorizedKeysCommand.

The determinate order is good for login behavior and security audit.

>From the user side, can the order be set manually?


A real use case for making AuthorizedKeysCommand before AuthorizedKeysFile:

* The authorized_keys file is only used for emergency use.
* Every login is checked by authorized keys command (it can use other
servers to auth through the network), and the command can return
"force nologin" to disable the keys in authorized_keys.
* In emergency cases (eg: network failure, or command corruption), the
emergency key in authorized_keys can still be used to recover the
system.

If OpenSSH server can introduce an option like "AuthorizedKeysOrder
command,file", it would help a lot.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux