From 1918ab4cbd79d81dd1255ef090ab45d3ffe095ec Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sun, 17 Sep 2023 16:36:30 +0200 Subject: [PATCH] ssh config --- modules/ssh-client.nix | 7 +++++++ modules/ssh-server.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/ssh-client.nix b/modules/ssh-client.nix index 06e37dd..e45c2b5 100644 --- a/modules/ssh-client.nix +++ b/modules/ssh-client.nix @@ -15,6 +15,13 @@ port = 2224; compression = true; }; + "rootYodaYoga" = { + hostname = "p1st.de"; + #hostname = "192.168.178.99"; + user = "root"; + port = 2224; + compression = true; + }; "unlockYodaYoga" = { hostname = "p1st.de"; #hostname = "192.168.178.99"; diff --git a/modules/ssh-server.nix b/modules/ssh-server.nix index 0d05350..fe408cb 100644 --- a/modules/ssh-server.nix +++ b/modules/ssh-server.nix @@ -9,7 +9,7 @@ settings.PasswordAuthentication = false; # Forbid/Limit root login through SSH. #settings.PermitRootLogin = "no"; - #settings.PermitRootLogin = "prohibit-password"; + settings.PermitRootLogin = "prohibit-password"; # Enabling this is required for commands such as sftp and sshfs. allowSFTP = false; };