mini script to fix .ssh folder to appropriate safe permissions for ssh to use.
authorChris Koeritz <fred@gruntose.com>
Wed, 20 Jul 2016 23:17:14 +0000 (19:17 -0400)
committerChris Koeritz <fred@gruntose.com>
Wed, 20 Jul 2016 23:17:14 +0000 (19:17 -0400)
scripts/rev_control/fix_ssh_perms.sh [new file with mode: 0644]

diff --git a/scripts/rev_control/fix_ssh_perms.sh b/scripts/rev_control/fix_ssh_perms.sh
new file mode 100644 (file)
index 0000000..eb294fc
--- /dev/null
@@ -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/*
+
+