mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 02:08:29 +02:00
feat: update ssh.nix
This commit is contained in:
@@ -4,12 +4,12 @@
|
|||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# all my ssh private key are generated by `ssh-keygen -t ed25519 -C "ryan@nickname"`
|
# All my ssh private key are generated by `ssh-keygen -t ed25519 -a 256 -C "xxx@xxx"`
|
||||||
# the config's format:
|
# Config format:
|
||||||
# Host — given the pattern used to match against the host name given on the command line.
|
# Host — given the pattern used to match against the host name given on the command line.
|
||||||
# HostName — specify nickname or abbreviation for host
|
# HostName — specify nickname or abbreviation for host
|
||||||
# IdentityFile — the location of your SSH key authentication file for the account.
|
# IdentityFile — the location of your SSH key authentication file for the account.
|
||||||
# format in details:
|
# Format in details:
|
||||||
# https://www.ssh.com/academy/ssh/config
|
# https://www.ssh.com/academy/ssh/config
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# a private key that is used during authentication will be added to ssh-agent if it is running
|
# a private key that is used during authentication will be added to ssh-agent if it is running
|
||||||
@@ -36,18 +36,6 @@
|
|||||||
Host s500plus
|
Host s500plus
|
||||||
HostName 192.168.5.174
|
HostName 192.168.5.174
|
||||||
Port 22
|
Port 22
|
||||||
|
|
||||||
Host k8s-main
|
|
||||||
HostName 192.168.5.181
|
|
||||||
ForwardAgent yes
|
|
||||||
|
|
||||||
Host k8s-data1
|
|
||||||
HostName 192.168.5.182
|
|
||||||
ForwardAgent yes
|
|
||||||
|
|
||||||
Host k8s-data2
|
|
||||||
HostName 192.168.5.183
|
|
||||||
ForwardAgent yes
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user