mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 15:00:14 +00:00
fix: cloudflare tunnel on tempest
requires openssh, but removing public key
This commit is contained in:
@ -13,9 +13,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.publicKey != null) {
|
||||
config = lib.mkIf config.services.openssh.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 22 ];
|
||||
allowSFTP = true;
|
||||
settings = {
|
||||
@ -27,7 +26,7 @@
|
||||
};
|
||||
|
||||
users.users.${config.user}.openssh.authorizedKeys.keys =
|
||||
[ config.publicKey ];
|
||||
lib.mkIf (config.publicKey != null) [ config.publicKey ];
|
||||
|
||||
# Implement a simple fail2ban service for sshd
|
||||
services.sshguard.enable = true;
|
||||
|
Reference in New Issue
Block a user