Allow local ssh configs

Fri, 20 Jan 2017 10:21:26 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 20 Jan 2017 10:21:26 -0500
changeset 479
2b08e0404a8d
parent 478
78858f1e23b8
child 480
ca3afb782d18

Allow local ssh configs

.profile.common file | annotate | diff | comparison | revisions
.ssh/Makefile file | annotate | diff | comparison | revisions
.ssh/config.d/10-main file | annotate | diff | comparison | revisions
--- a/.profile.common
+++ b/.profile.common
@@ -1,5 +1,7 @@
 # simple profile stuff that is common to both zsh and bash
 
+make -s -C ~/.ssh &
+
 export EDITOR=vim
 export LESS=-Ri
 export PERL_CPANM_OPT='-nq --prompt'
new file mode 100644
--- /dev/null
+++ b/.ssh/Makefile
@@ -0,0 +1,7 @@
+config: config.d/*
+	cat config.d/* > $@
+
+clean:
+	rm -f config
+
+.PHONY: clean
new file mode 100644
--- /dev/null
+++ b/.ssh/config.d/10-main
@@ -0,0 +1,15 @@
+ControlPath ~/.ssh/mux/%h-%p-%r
+ControlPersist 10
+
+ExitOnForwardFailure yes
+
+Host *
+        # CVE-2016-0778 workaround
+	UseRoaming no
+
+Host vagrant
+	Hostname 127.0.0.1
+	Port 2222
+	User vagrant
+	IdentityFile ~/.vagrant.d/insecure_private_key
+

mercurial