mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-11 06:59:59 +00: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',
|
||||||
'ssh-keygen.exe',
|
'ssh-keygen.exe',
|
||||||
)
|
)
|
||||||
|
await execFile('icacls', [temp.path, '/inheritance:r'])
|
||||||
|
await execFile('icacls', [temp.path, '/grant:r', `${process.env.USERNAME}:(R)`])
|
||||||
}
|
}
|
||||||
|
|
||||||
await execFile(sshKeygenPath, [
|
await execFile(sshKeygenPath, [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user