fix(ssh): Enable and troubleshoot ssh
This commit is contained in:
parent
3514b47d11
commit
d184d54b07
2 changed files with 5 additions and 4 deletions
|
@ -22,6 +22,7 @@
|
|||
./neofetch.nix
|
||||
./rbw.nix
|
||||
./ripgrep.nix
|
||||
./ssh.nix
|
||||
./starship.nix
|
||||
./tmux.nix
|
||||
./topgrade.nix
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
programs.ssh = {
|
||||
enable = true;
|
||||
|
||||
extraConfig = {
|
||||
identityFile = "%r@%h";
|
||||
};
|
||||
|
||||
# Equivalent of ~/.ssh/config
|
||||
# %d - local user's home directory
|
||||
# %r - remote username
|
||||
matchBlocks = {
|
||||
"tty.marleycentre" = {
|
||||
hostname = "admin.punkfairie.net";
|
||||
identityFile = "%d/.ssh/%r@marleycentre";
|
||||
};
|
||||
|
||||
"tty.marleynet" = {
|
||||
hostname = "10.69.69.2";
|
||||
port = 222;
|
||||
identityFile = "%d/.ssh/%r@marleynet";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue