summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lwirzenius@wikimedia.org>2020-03-06 17:33:35 +0200
committerLars Wirzenius <lwirzenius@wikimedia.org>2020-03-06 18:35:48 +0200
commit75ddd49eadf6b2dbc45b8230e9561888ef0bd31a (patch)
tree94f402b893263c7a9b94f9090f436150286bc848
parent4a3b29159a68a68588b6972b8911c727cc4300d2 (diff)
downloadliw-dot-files-75ddd49eadf6b2dbc45b8230e9561888ef0bd31a.tar.gz
Add: ssh config
-rwxr-xr-xmake-symlinks4
-rw-r--r--ssh/config4
-rw-r--r--ssh/config-pers0
-rw-r--r--ssh/config-wmf28
4 files changed, 35 insertions, 1 deletions
diff --git a/make-symlinks b/make-symlinks
index 02adaf4..2d8e830 100755
--- a/make-symlinks
+++ b/make-symlinks
@@ -25,7 +25,6 @@ files="
emacs
git-global-ignore
mailcap
- people.json
profile
screenrc
signature
@@ -33,6 +32,9 @@ files="
taskrc
vimrc
xsessionrc
+ ssh/config
+ ssh/config-wmf
+ ssh/config-pers
"
for x in $files
diff --git a/ssh/config b/ssh/config
new file mode 100644
index 0000000..af407b1
--- /dev/null
+++ b/ssh/config
@@ -0,0 +1,4 @@
+# This is my dancing and singing ssh client config file.
+
+Include config-wmf
+Include config-pers
diff --git a/ssh/config-pers b/ssh/config-pers
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ssh/config-pers
diff --git a/ssh/config-wmf b/ssh/config-wmf
new file mode 100644
index 0000000..3240f57
--- /dev/null
+++ b/ssh/config-wmf
@@ -0,0 +1,28 @@
+# SSH client configuration for WMF use.
+
+# Turn this on for Match to work.
+CanonicalizeHostname yes
+
+# Defaults for all WMF hosts.
+Match host=*.wikimedia.org,*.wmnet
+ ForwardAgent no
+ IdentitiesOnly yes
+ KbdInteractiveAuthentication no
+ PasswordAuthentication no
+ User liw
+ UserKnownHostsFile ~/.ssh/known_hosts.d/wmf-prod
+
+# Configure the initial connection to the bastion host, with the one
+# HostName closest to you
+Host bast
+ HostName bast3004.wikimedia.org
+ IdentityFile ~/.ssh/prod.key
+
+# Proxy all connections to internal servers through the bastion host
+Host *.wmnet
+ ProxyJump bast
+ IdentityFile ~/.ssh/prod.key
+
+Host gerrit.wikimedia.org
+ Port 29418
+ IdentityFile ~/.ssh/lab.key