projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4be1c7
)
correct perms on .ssh
author
AJ ONeal
<aj@therootcompany.com>
Thu, 25 Jun 2020 04:50:49 +0000
(
04:50
+0000)
committer
AJ ONeal
<aj@therootcompany.com>
Thu, 25 Jun 2020 04:50:49 +0000
(
04:50
+0000)
ssh-utils/ssh-pubkey.sh
patch
|
blob
|
history
diff --git
a/ssh-utils/ssh-pubkey.sh
b/ssh-utils/ssh-pubkey.sh
index 9f0722911b6ee68640012814bf885f2b60aa580b..074a098452cc896438e9e6cfc956ec4b57dada5b 100644
(file)
--- a/
ssh-utils/ssh-pubkey.sh
+++ b/
ssh-utils/ssh-pubkey.sh
@@
-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 ""