reset permissions on key file (fixes #2201)

This commit is contained in:
Eugene Pankov 2020-03-02 16:21:37 +01:00
parent 0d65fe348b
commit 6b4b6b522f

View file

@ -109,6 +109,8 @@ export class SSHService {
'ssh-keygen',
'ssh-keygen.exe',
)
await execFile('icacls', [temp.path, '/inheritance:r'])
await execFile('icacls', [temp.path, '/grant:r', `${process.env.USERNAME}:(R)`])
}
await execFile(sshKeygenPath, [