cnfgs
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
|
||||
|
||||
matchBlocks = {
|
||||
"kr0sh.ru" = {
|
||||
host = "kr0sh.ru";
|
||||
@@ -18,20 +17,28 @@
|
||||
identityFile = [ "~/.ssh/id" ];
|
||||
};
|
||||
|
||||
"alpha" = {
|
||||
host = "alpha";
|
||||
hostname = "krosh.mooo.com";
|
||||
port = 2006;
|
||||
user = "root";
|
||||
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
||||
};
|
||||
|
||||
"homeserver" = {
|
||||
host = "homeserver";
|
||||
hostname = "192.168.3.71";
|
||||
port = 2006;
|
||||
user = "krosh";
|
||||
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
||||
port = 2006;
|
||||
user = "krosh";
|
||||
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
||||
};
|
||||
|
||||
"homeserver-wg" = {
|
||||
host = "homeserver-wg";
|
||||
hostname = "10.10.0.10";
|
||||
port = 2006;
|
||||
user = "krosh";
|
||||
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
||||
port = 2006;
|
||||
user = "krosh";
|
||||
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
||||
};
|
||||
|
||||
"polus" = {
|
||||
@@ -54,20 +61,20 @@
|
||||
};
|
||||
};
|
||||
|
||||
programs.ssh.enableDefaultConfig = false;
|
||||
programs.ssh.enableDefaultConfig = false;
|
||||
|
||||
programs.ssh.matchBlocks."*" = {
|
||||
forwardAgent = false;
|
||||
addKeysToAgent = "no";
|
||||
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 = "no";
|
||||
compression = false;
|
||||
serverAliveInterval = 0;
|
||||
serverAliveCountMax = 3;
|
||||
hashKnownHosts = false;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||
controlMaster = "no";
|
||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||
controlPersist = "no";
|
||||
};
|
||||
|
||||
# services.ssh-agent.enable = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user