fix: set correct perms for ssh key files

This commit is contained in:
Jose Diaz-Gonzalez
2020-06-07 15:10:41 -04:00
parent ee083eb3c3
commit 2919415d7e

View File

@@ -55,7 +55,8 @@ endif
mkdir -p /root/.ssh
rm -f /root/.ssh/dokku_test_rsa*
echo -e "y\n" | ssh-keygen -f /root/.ssh/dokku_test_rsa -t rsa -N ''
chmod 600 /root/.ssh/dokku_test_rsa*
chmod 600 /root/.ssh/dokku_test_rsa
chmod 644 /root/.ssh/dokku_test_rsa.pub
@echo "-----> Setting up ssh config..."
ifneq ($(shell ls /root/.ssh/config >/dev/null 2>&1 ; echo $$?),0)