ssh improvements

This commit is contained in:
2026-06-24 00:57:50 +02:00
parent 3e129ef189
commit d9113e9afd
+24 -27
View File
@@ -5,40 +5,37 @@
enableDefaultConfig = false;
"${if stable then "matchBlocks" else "settings"}" = {
"*" = {
AddKeysToAgent = "yes";
ForwardAgent = false;
Compression = false;
ServerAliveInterval = 0;
ServerAliveCountMax = 3;
HashKnownHosts = false;
UserKnownHostsFile = "~/.ssh/known_hosts";
ControlMaster = "no";
ControlPath = "~/.ssh/master-%r@%n:%p";
ControlPersist = "no";
forwardAgent = false;
addKeysToAgent = "yes";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
"*.pvv.ntnu.no" = {
IdentityFile = "~/.ssh/pvv_nixos_id_ed25519";
User = "vegardbm";
"*.pvv.ntnu.no microbel pvv-login" = {
identityFile = "~/.ssh/pvv_nixos_id_ed25519";
user = "vegardbm";
};
"pvv-git git.pvv.ntnu.no" = {
Port = 2222;
User = "Gitea";
Hostname = "git.pvv.ntnu.no";
ProxyJump = "microbel";
IdentityFile = "~/.ssh/pvv_gitea_id_ed25519";
"git.pvv.ntnu.no pvv-git" = {
port = 2222;
user = "Gitea";
hostname = "git.pvv.ntnu.no";
proxyJump = "microbel";
identityFile = "~/.ssh/pvv_gitea_id_ed25519";
};
"github.com" = {
Hostname = "github.com";
IdentityFile = "~/.ssh/nixos_xeon_github_id_ed25519";
hostname = "github.com";
identityFile = "~/.ssh/nixos_xeon_github_id_ed25519";
};
"microbel" = {
Hostname = "microbel.pvv.ntnu.no";
IdentityFile = "~/.ssh/pvv_gitea_id_ed25519";
User = "vegardbm";
hostname = "microbel.pvv.ntnu.no";
};
"pvv-login login.pvv.ntnu.no" = {
Hostname = "login.pvv.ntnu.no";
User = "vegardbm";
"pvv-login" = {
hostname = "login.pvv.ntnu.no";
};
};
};