mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-29 13:35:34 +03:00
Fixed SSH Keys Permission Denied
This commit is contained in:
parent
3cff5909bd
commit
9cae50bfc5
@ -114,7 +114,9 @@ export class SSHService {
|
||||
'ssh-keygen.exe',
|
||||
)
|
||||
await execFile('icacls', [temp.path, '/inheritance:r'])
|
||||
await execFile('icacls', [temp.path, '/grant:r', `${process.env.USERNAME}:(R,W)`])
|
||||
let sid = await execFile('whoami', ['/user', '/nh']);
|
||||
sid = sid[0].split(' ')[0];
|
||||
await execFile('icacls', [temp.path, '/grant:r', `${sid}:(R,W)`])
|
||||
}
|
||||
|
||||
await execFile(sshKeygenPath, [
|
||||
|
Loading…
Reference in New Issue
Block a user