Ssh : Move to separate file.

This commit is contained in:
Dmitry Voronin 2024-03-04 12:31:24 +03:00
parent 5fac22cd7f
commit 92829680cb
2 changed files with 45 additions and 46 deletions

View file

@ -1,49 +1,4 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [ sshfs ];
programs.ssh.extraConfig = ''
Host dasha
HostName 192.168.1.7
User root
Port 22143
Host desktop
Hostname 192.168.1.3
User root
Port 22143
Host fmpmaven
Hostname 10.30.22.10
User root
Port 22
Host fsight
Hostname 10.30.217.25
User root
Port 22143
Host home
HostName 192.168.1.2
User root
Port 22143
Host laptop
Hostname 192.168.1.9
User root
Port 22143
Host pi
Hostname 192.168.1.6
User root
Port 22143
Host vpn
Hostname 194.113.233.38
User root
Port 22143
Host work
Hostname 192.168.1.5
User root
Port 22143
'';
programs.ssh.extraConfig = builtins.readFile ./ssh/Config;
}

44
module/common/ssh/Config Normal file
View file

@ -0,0 +1,44 @@
Host dasha
HostName 192.168.1.7
User root
Port 22143
Host desktop
Hostname 192.168.1.3
User root
Port 22143
Host fmpmaven
Hostname 10.30.22.10
User root
Port 22
Host fsight
Hostname 10.30.217.25
User root
Port 22143
Host home
HostName 192.168.1.2
User root
Port 22143
Host laptop
Hostname 192.168.1.9
User root
Port 22143
Host pi
Hostname 192.168.1.6
User root
Port 22143
Host vpn
Hostname 194.113.233.38
User root
Port 22143
Host work
Hostname 192.168.1.5
User root
Port 22143