mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-22 13:14:42 -05:00
Make sure private key is only readable by user
This commit is contained in:
parent
d7c9115796
commit
be889cbea5
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue