definitely fixed key permissions

This commit is contained in:
Eugene Pankov 2020-03-02 16:45:47 +01:00
parent 6b4b6b522f
commit dfe55b94ff

View File

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