ssh key reroll
This commit is contained in:
parent
aec7763929
commit
fb781d6e8a
10 changed files with 191 additions and 42 deletions
|
|
@ -14,25 +14,17 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
banner = ''
|
||||
==================================================================
|
||||
=== ==== ==== ========= ================================= ===
|
||||
=== ==== ==== ========= ================================= ===
|
||||
=== ==== ==== ========= ================================= ===
|
||||
=== ==== ==== === === === ==== === = = ==== === ===
|
||||
=== == == === = == == = == == == = == ===
|
||||
==== == == === == == ===== = == = = == == ===
|
||||
==== == == === ===== == ===== = == = = == ==========
|
||||
===== == ==== = == == = == = == = = == = == ===
|
||||
====== ==== ====== === === ==== === = = === === ===
|
||||
==================================================================
|
||||
'';
|
||||
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
AllowUsers = ["horseman"];
|
||||
};
|
||||
extraConfig = ''
|
||||
Hostkey ${config.age.secrets.personalSSH.path}
|
||||
Hostkey ${config.age.secrets.githubSSH.path}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue