From 670a7f2cd4525162ccfce520d2183bb320babb85 Mon Sep 17 00:00:00 2001 From: jasmine Date: Thu, 6 Jun 2024 20:56:17 +0800 Subject: [PATCH] Fix forgejo ssh --- home-manager/sajenim/features/cli/git.nix | 2 +- nixos/common/global/ssh.nix | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/home-manager/sajenim/features/cli/git.nix b/home-manager/sajenim/features/cli/git.nix index 863a500..5e9b056 100644 --- a/home-manager/sajenim/features/cli/git.nix +++ b/home-manager/sajenim/features/cli/git.nix @@ -11,7 +11,7 @@ userEmail = "its.jassy@pm.me"; extraConfig = { init.defaultBranch = "master"; - core.sshCommand = "ssh -i ~/.ssh/forgejo_sk -F /dev/null"; + core.sshCommand = "ssh -i ~/.ssh/forgejo_sk -p 62841 -F /dev/null"; commit.gpgsign = "true"; user.signingkey = "8563E358D4E8040E"; }; diff --git a/nixos/common/global/ssh.nix b/nixos/common/global/ssh.nix index b366b96..508ecf7 100644 --- a/nixos/common/global/ssh.nix +++ b/nixos/common/global/ssh.nix @@ -6,7 +6,6 @@ settings = { PermitRootLogin = "no"; PasswordAuthentication = false; - AllowUsers = [ "sajenim" ]; }; ports = [ 62841 ]; openFirewall = true;