mirror of
https://github.com/Eugeny/tabby.git
synced 2025-01-03 16:12:50 +03:00
reset permissions on key file (fixes #2201)
This commit is contained in:
parent
0d65fe348b
commit
6b4b6b522f
@ -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 New Issue
Block a user