feat: update ssh.nix

This commit is contained in:
Ryan Yin
2024-02-28 09:02:24 +08:00
committed by GitHub
parent 3c5f0751f5
commit fcde4b8e83

View File

@@ -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
''; '';
}; };
} }