pub(crate) fn add_ssh_integration(
user: &SystemUserId,
authorized_key: &AuthorizedKeyEntry,
force_command: &SshForceCommand,
) -> Result<(), Error>Expand description
Adds the SSH integration for a specific Unix user.
Sets a single authorized_key entry for user in the system-wide SSH configuration location.
Sets up a system-wide SSH configuration for user in which its authorized_key configuration
as well as a specific force_command is enforced.
ยงErrors
Returns an error if
- the
authorized_keyentry forusercannot be created - the sshd configuration file for
usercannot be created