updated ssh config
This commit is contained in:
parent
0c40500863
commit
c67d17556f
1 changed files with 32 additions and 27 deletions
59
flake.nix
59
flake.nix
|
|
@ -560,34 +560,39 @@
|
||||||
ssh = {
|
ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableDefaultConfig = false;
|
enableDefaultConfig = false;
|
||||||
matchBlocks = {
|
matchBlocks =
|
||||||
"*" = {
|
let
|
||||||
forwardAgent = false;
|
server = {
|
||||||
addKeysToAgent = "no";
|
ip = "93.94.24.17";
|
||||||
compression = false;
|
port = 22;
|
||||||
serverAliveInterval = 0;
|
username = "dario48";
|
||||||
serverAliveCountMax = 3;
|
};
|
||||||
hashKnownHosts = false;
|
in
|
||||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
{
|
||||||
controlMaster = "no";
|
"*" = {
|
||||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
forwardAgent = false;
|
||||||
controlPersist = "no";
|
addKeysToAgent = "no";
|
||||||
|
compression = false;
|
||||||
|
serverAliveInterval = 0;
|
||||||
|
serverAliveCountMax = 3;
|
||||||
|
hashKnownHosts = false;
|
||||||
|
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||||
|
controlMaster = "no";
|
||||||
|
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||||
|
controlPersist = "no";
|
||||||
|
};
|
||||||
|
"git.dario48.site" = {
|
||||||
|
hostname = server.ip;
|
||||||
|
identityFile = "~/.ssh/id_ed25519";
|
||||||
|
port = server.port;
|
||||||
|
};
|
||||||
|
home_server = {
|
||||||
|
hostname = server.ip;
|
||||||
|
identityFile = "~/.ssh/home_server";
|
||||||
|
user = server.username;
|
||||||
|
port = server.port;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"dario48.site" = {
|
|
||||||
hostname = "93.94.24.17";
|
|
||||||
};
|
|
||||||
"git.dario48.site" = {
|
|
||||||
hostname = "dario48.site";
|
|
||||||
identityFile = "~/.ssh/id_ed25519";
|
|
||||||
port = 22;
|
|
||||||
};
|
|
||||||
home_server = {
|
|
||||||
hostname = "dario48.site";
|
|
||||||
identityFile = "~/.ssh/home_server";
|
|
||||||
user = "dario48";
|
|
||||||
port = 22;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
# }}}
|
# }}}
|
||||||
# hyfetch {{{
|
# hyfetch {{{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue