使用powershell设置文件访问权限,为仅让LENOVO用户完全控制 ssh research@4090.a800…
- User
使用powershell设置文件访问权限,为仅让LENOVO用户完全控制 ssh research@4090.a800 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions for 'C:\Users\LENOVO\.tsh\keys\a800-jumper.bigmodel.cn\yushuang' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "C:\Users\LENOVO\.tsh\keys\a800-jumper.bigmodel.cn\yushuang": bad permissions research@4090.a800: Permission denied (publickey).
Assistant
To resolve the issue with the unprotected private key file and set the file access permissions for the LENOVO user, follow these steps:
-
First, fix the permissions for your private key file. In PowerShell, run the following command to restrict access to the private key file:
powershell$keyPath = "C:\Users\LENOVO\.tsh\keys\a800-jumper.bigmodel.cn\yushuang" $keyAcl = Get-Acl -Path $keyPath $keyAcl.SetAccessRuleProtection($true, $false) $keyAcl.AddAccessRule((New-Object System.Security.AccessControl.FileSystemAccessRule("LENOVO", "FullControl", "Allow"))) Set-Acl -Path $keyPath -AclObject $keyAcl
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.