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 = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
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";
|
||||
matchBlocks =
|
||||
let
|
||||
server = {
|
||||
ip = "93.94.24.17";
|
||||
port = 22;
|
||||
username = "dario48";
|
||||
};
|
||||
in
|
||||
{
|
||||
"*" = {
|
||||
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";
|
||||
};
|
||||
"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 {{{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue