security.pam.rssh.settings.auth_key_file

Path to file with trusted public keys in OpenSSH's authorized_keys format. The following variables are expanded to the respective PAM items:

These PAM items are explained in pam_get_item(3).

Variables may be specified as $var, ${var} or ${var:defaultValue}.

Specifying user-writeable files here results in an insecure configuration: a malicious process can then edit such an authorized_keys file and bypass the ssh-agent-based authentication.

This option is ignored if security.pam.rssh.settings.authorized_keys_command is set.

If both this option and security.pam.rssh.settings.authorized_keys_command are unset, the keys will be read from ${HOME}/.ssh/authorized_keys, which should be considered insecure.

Type
null or non-empty string
Default
"/etc/ssh/authorized_keys.d/$ruser"
Declared
<nixpkgs/nixos/modules/security/pam.nix>