Skip to content

Commit

Permalink
feat(server): Don't use a non-standard SSH port
Browse files Browse the repository at this point in the history
it doesn't actually enhance security at all, plus it's only accessible via LAN anyway
  • Loading branch information
mrjones2014 committed Oct 23, 2024
1 parent e69707e commit 791bc4c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions home-manager/modules/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ in {
enable = true;
forwardAgent = true;
matchBlocks = {
"nixos-server" = {
port = 6969;
hostname = "192.168.189.2";
};
"nixos-server".hostname = "192.168.189.2";
"gitlab.1password.io" = {
port = 2227;
hostname = "ssh.gitlab.1password.io";
Expand Down
2 changes: 0 additions & 2 deletions hosts/server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
PermitRootLogin = "no";
AllowUsers = [ "mat" ];
};

ports = [ 6969 ];
};
};

Expand Down

0 comments on commit 791bc4c

Please sign in to comment.