mirror of
https://github.com/Eugeny/tabby
synced 2024-12-14 07:12:50 +00:00
reset permissions on key file (fixes #2201)
This commit is contained in:
parent
0d65fe348b
commit
6b4b6b522f
1 changed files with 2 additions and 0 deletions
|
@ -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, [
|
||||
|
|
Loading…
Reference in a new issue