From 526fe1de65a14273d5764311574727878e8745ec Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Mon, 17 Feb 2020 23:52:40 +0200 Subject: [PATCH] Make moria and rivendell use lan addresses --- home/.ssh/config | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/.ssh/config b/home/.ssh/config index 080ac75..fc93742 100644 --- a/home/.ssh/config +++ b/home/.ssh/config @@ -19,14 +19,24 @@ Host aur User aur host moria +{%@@ if profile == "Rivendell" @@%} + HostName moria.reekynet.lan + port 22 +{%@@ else @@%} HostName reekynet.com port 221 +{%@@ endif @@%} User balrog ForwardAgent yes host rivendell +{%@@ if profile == "Moria" @@%} + HostName rivendell.reekynet.lan + port 22 +{%@@ else @@%} HostName reekynet.com port 222 +{%@@ endif @@%} User gimli ForwardAgent yes