From: Chris Koeritz Date: Wed, 20 Jul 2016 23:17:14 +0000 (-0400) Subject: mini script to fix .ssh folder to appropriate safe permissions for ssh to use. X-Git-Tag: 2.140.90~505 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=e349e4984f8b88c131ac823e87f1c9b240e91346;hp=e9e844d5564701eefe6632580356dd5de4c85e8a;p=feisty_meow.git mini script to fix .ssh folder to appropriate safe permissions for ssh to use. --- 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/* + +