summaryrefslogtreecommitdiff
path: root/config/services/sshproxy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/services/sshproxy/default.nix')
-rw-r--r--config/services/sshproxy/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/config/services/sshproxy/default.nix b/config/services/sshproxy/default.nix
new file mode 100644
index 0000000..7bfbc62
--- /dev/null
+++ b/config/services/sshproxy/default.nix
@@ -0,0 +1,27 @@
+{ config, pkgs, ... }:
+{
+ users.users.sshjump = {
+ shell = "${pkgs.coreutils}/bin/true";
+ isSystemUser = true;
+ group = "sshjump";
+ openssh.authorizedKeys.keys = with config.personal.lib.publicKeys.ssh; [
+ latitude-7490
+ precision-3571
+ dragonfly-g4
+ optiplex-9030
+ ];
+ };
+
+ users.groups.sshjump = { };
+
+ services.openssh.extraConfig = ''
+ Match user sshjump
+ AllowTcpForwarding yes
+ AllowAgentForwarding yes
+ PasswordAuthentication no
+ PermitTunnel no
+ GatewayPorts no
+ PermitTTY no
+ X11Forwarding no
+ '';
+}