updated ssh config
This commit is contained in:
parent
0c40500863
commit
c67d17556f
1 changed files with 32 additions and 27 deletions
23
flake.nix
23
flake.nix
|
|
@ -560,7 +560,15 @@
|
||||||
ssh = {
|
ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableDefaultConfig = false;
|
enableDefaultConfig = false;
|
||||||
matchBlocks = {
|
matchBlocks =
|
||||||
|
let
|
||||||
|
server = {
|
||||||
|
ip = "93.94.24.17";
|
||||||
|
port = 22;
|
||||||
|
username = "dario48";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
"*" = {
|
"*" = {
|
||||||
forwardAgent = false;
|
forwardAgent = false;
|
||||||
addKeysToAgent = "no";
|
addKeysToAgent = "no";
|
||||||
|
|
@ -573,19 +581,16 @@
|
||||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||||
controlPersist = "no";
|
controlPersist = "no";
|
||||||
};
|
};
|
||||||
"dario48.site" = {
|
|
||||||
hostname = "93.94.24.17";
|
|
||||||
};
|
|
||||||
"git.dario48.site" = {
|
"git.dario48.site" = {
|
||||||
hostname = "dario48.site";
|
hostname = server.ip;
|
||||||
identityFile = "~/.ssh/id_ed25519";
|
identityFile = "~/.ssh/id_ed25519";
|
||||||
port = 22;
|
port = server.port;
|
||||||
};
|
};
|
||||||
home_server = {
|
home_server = {
|
||||||
hostname = "dario48.site";
|
hostname = server.ip;
|
||||||
identityFile = "~/.ssh/home_server";
|
identityFile = "~/.ssh/home_server";
|
||||||
user = "dario48";
|
user = server.username;
|
||||||
port = 22;
|
port = server.port;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue