0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Make sure private key is only readable by user

This commit is contained in:
Adrian Dvergsdal 2015-11-23 14:02:41 +01:00
parent d7c9115796
commit be889cbea5

View file

@ -14,6 +14,9 @@ function beforeTest() {
docker build --pull=true --tag "$sftpImageName" "$buildDir"
fi
# Private key can not be read by others
chmod go-rw "$scriptDir/id_rsa"
rm -rf "$tmpDir" # clean state
mkdir "$tmpDir"