mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-02-23 08:39:11 -05:00
guhhh i love sshd
This commit is contained in:
parent
ff09a57d27
commit
f071f4a5c2
1 changed files with 9 additions and 1 deletions
|
@ -4,11 +4,19 @@
|
|||
systemPackages = with pkgs; [
|
||||
kitty.terminfo
|
||||
];
|
||||
etc = {
|
||||
"all_users_authorized_keys" = {
|
||||
source = ./ssh.keys;
|
||||
mode = "0600";
|
||||
uid = 0;
|
||||
gid = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
authorizedKeysFiles = [ "${./ssh.keys}" ];
|
||||
authorizedKeysFiles = [ "/etc/all_users_authorized_keys" ];
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue