feat(ssh): pin the Gitea host to its IP, overriding DNS
Set HostName 10.187.1.76 on the code.emmathe.dev block so the Gitea remote resolves to the fixed IP without relying on DNS (same user, port 30009 and key). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -241,10 +241,12 @@
|
|||||||
// lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
|
// lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
|
||||||
UseKeychain = "yes";
|
UseKeychain = "yes";
|
||||||
};
|
};
|
||||||
# Gitea remote (the flake's origin) -- required on every host. Port 30009
|
# Gitea remote (the flake's origin) -- required on every host. HostName
|
||||||
# is non-default; pin the dedicated key (identitiesOnly avoids "too many
|
# pins the IP so it resolves without DNS. Port 30009 is non-default; pin
|
||||||
# authentication failures" when the agent holds several keys).
|
# the dedicated key (identitiesOnly avoids "too many authentication
|
||||||
|
# failures" when the agent holds several keys).
|
||||||
"code.emmathe.dev" = {
|
"code.emmathe.dev" = {
|
||||||
|
HostName = "10.187.1.76";
|
||||||
User = "git";
|
User = "git";
|
||||||
Port = 30009;
|
Port = 30009;
|
||||||
IdentityFile = "~/.ssh/code.emmathe.dev";
|
IdentityFile = "~/.ssh/code.emmathe.dev";
|
||||||
|
|||||||
Reference in New Issue
Block a user