From 92306f8125f4301a2f9547a02948ea65fe550e54 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Tue, 11 Jan 2022 11:21:48 +0100 Subject: [PATCH] After regenerating ssh config, make sure permissions are correct --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 093a497..109fa1d 100644 --- a/.bashrc +++ b/.bashrc @@ -177,6 +177,7 @@ if [ -e ~/.ssh/config.d ]; then [ -e ~/.ssh/config ] && mv ~/.ssh/config ~/.ssh/config.bak.$(date -Is) # Lets preserve order, so you can have 00_generic 10_homestuff 20_work1 21_work2 and such find ~/.ssh/config.d/* -type f -print0 | sort -z | xargs -0 -n1 cat > ~/.ssh/config + chmod 600 ~/.ssh/config fi fi fi