diff --git a/all/function/ssh b/all/function/ssh index 923108a..5f09839 100644 --- a/all/function/ssh +++ b/all/function/ssh @@ -1,4 +1,7 @@ +#!/bin/bash ssh_dir_permissions() { + sudo chmod -R g-w $HOME + echo warning turned off group write for $HOME as this can cause ssh failure sudo chown -R $USER:$USER $HOME/.ssh sudo chmod 00700 $HOME/.ssh sudo chmod 600 $HOME/.ssh/authorized_keys