--- a/.profile.common
+++ b/.profile.common
@@ -2,8 +2,10 @@
umask 027
-make -s -C ~/.ssh ||
- cat ~/.ssh/config.d/* > ~/.ssh/config
+make -s -C ~/.ssh || {
+ cat ~/.ssh/config.d/* > ~/.ssh/config &&
+ chmod 600 $_
+}
export EDITOR=vim
export SUDO_EDITOR=$HOME/bin/privim
--- a/.ssh/Makefile
+++ b/.ssh/Makefile
@@ -2,7 +2,7 @@
# config.d/10-base to config and add an Include config.d/*
config: config.d/*
- umask 277 && cat config.d/* > $@
+ cat config.d/* > $@ && chmod 600 $@
clean:
rm -f config