Remove SSH access to root user

This commit is contained in:
coolneng 2021-08-09 21:59:07 +01:00
parent c621d70c9c
commit 0aa1724bba
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 7 deletions

View File

@ -88,13 +88,8 @@
shell = pkgs.fish; shell = pkgs.fish;
}; };
# Set shell and SSH for root user # Set shell for root user
users.users.root = { users.users.root.shell = pkgs.fish;
shell = pkgs.fish;
openssh.authorizedKeys.keys = [''
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvnfIsxGZWh+tU7OI60Tw3CyT+q3ghoETfRyWsXhioZ coolneng@panacea
''];
};
# Auto-upgrade the system # Auto-upgrade the system
system.autoUpgrade = { system.autoUpgrade = {