summaryrefslogtreecommitdiff
path: root/misc/dotfiles/ssh/config.j2
diff options
context:
space:
mode:
Diffstat (limited to 'misc/dotfiles/ssh/config.j2')
-rw-r--r--misc/dotfiles/ssh/config.j229
1 files changed, 29 insertions, 0 deletions
diff --git a/misc/dotfiles/ssh/config.j2 b/misc/dotfiles/ssh/config.j2
new file mode 100644
index 0000000..d56f1d0
--- /dev/null
+++ b/misc/dotfiles/ssh/config.j2
@@ -0,0 +1,29 @@
+Host *
+ User d
+{% if ansible_facts['os_family'] == "Darwin" %}
+ # macOS specific settings.
+ UseKeychain yes
+ AddKeysToAgent yes
+{% endif %}
+
+Host gate
+ Hostname gate.ilvokhin.com
+ ForwardAgent yes
+
+Host sun
+ Hostname sun.ilvokhin.com
+
+Host mail
+ Hostname mail.ilvokhin.com
+ User root
+
+# Moscow machines behind NAT.
+Host water
+ ProxyJump gate
+ Hostname 10.9.8.2
+ ForwardAgent yes
+
+Host flame
+ ProxyJump gate
+ Hostname 10.9.9.2
+ ForwardAgent yes