From e349e4984f8b88c131ac823e87f1c9b240e91346 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 20 Jul 2016 19:17:14 -0400 Subject: [PATCH] mini script to fix .ssh folder to appropriate safe permissions for ssh to use. --- scripts/rev_control/fix_ssh_perms.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/rev_control/fix_ssh_perms.sh diff --git a/scripts/rev_control/fix_ssh_perms.sh b/scripts/rev_control/fix_ssh_perms.sh new file mode 100644 index 00000000..eb294fc8 --- /dev/null +++ b/scripts/rev_control/fix_ssh_perms.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# resets the permissions on the .ssh directory to be safe. +# otherwise ssh may ignore keys and such from there. + +chmod 700 $HOME/.ssh +chmod 600 $HOME/.ssh/* + + -- 2.34.1