Browse Source
Merge pull request #6687 from kapouer/ssh-noscp-permissions
Ssh noscp permissions
pull/1226/merge
neil
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
deploy/ssh.sh
|
|
|
@ -238,6 +238,8 @@ then rm -rf \"\$fn\"; echo \"Backup \$fn deleted as older than 180 days\"; fi; d |
|
|
|
return $_err_code |
|
|
|
fi |
|
|
|
else |
|
|
|
# If file doesn't exist, create it and change its permissions. |
|
|
|
_cmdstr="$_cmdstr test ! -f $DEPLOY_SSH_KEYFILE && touch $DEPLOY_SSH_KEYFILE && chmod 600 $DEPLOY_SSH_KEYFILE;" |
|
|
|
# ssh echo to the file |
|
|
|
_cmdstr="$_cmdstr echo \"$(cat "$_ckey")\" > $DEPLOY_SSH_KEYFILE;" |
|
|
|
_info "will copy private key to remote file $DEPLOY_SSH_KEYFILE" |
|
|
|
|