Fix permissions and ports in SSH

This commit is contained in:
Greg Hellings
2024-04-02 15:01:07 -05:00
parent 5cc4d9c43d
commit 4199c0023f
+1 -2
View File
@@ -5,7 +5,7 @@
# This allows things like SSH in distrobox to read the config file just fine # This allows things like SSH in distrobox to read the config file just fine
home.file.".ssh/config" = { home.file.".ssh/config" = {
target = ".ssh/config_source"; target = ".ssh/config_source";
onChange = ''cat ~/.ssh/config_source > ~/.ssh/config && chmod 400 ~/.ssh/config''; onChange = ''cat ~/.ssh/config_source > ~/.ssh/config && chmod 600 ~/.ssh/config'';
}; };
programs.ssh = { programs.ssh = {
enable = true; enable = true;
@@ -36,7 +36,6 @@
"src" = { "src" = {
user = "gitlab"; user = "gitlab";
hostname = "git.thehellings.lan"; hostname = "git.thehellings.lan";
port = 2222;
}; };
"*.thehellings.lan" = owned; "*.thehellings.lan" = owned;