correct perms on .ssh

This commit is contained in:
AJ ONeal
2020-06-25 04:50:49 +00:00
parent c4be1c7158
commit 5126dd3619
+4 -1
View File
@@ -4,7 +4,10 @@
set -e
set -u
mkdir -p "$HOME/.ssh/"
if [ ! -d "$HOME/.ssh" ]; then
mkdir -p "$HOME/.ssh/"
chmod 0700 "$HOME/.ssh/"
fi
if [ ! -f "$HOME/.ssh/id_rsa" ]; then
ssh-keygen -b 2048 -t rsa -f "$HOME/.ssh/id_rsa" -q -N ""