Cause#
Today, I was bored and wanted to check the server wwwlogs. I thought it would be too troublesome to download the logs to my local machine and view them, so I tried to directly connect to the server using VSCode to view the logs. Then, the situation shown in the image below occurred.
Solution#
What's going on? Take a closer look at the output message Bad owner or permissions on C:\\Users\\Administrator/.ssh/config
As for the reason, I don't know, but as long as I know how to solve it, that's good.
Don't worry, find C:\<username>\.ssh\config
Right-click and go to the "Security" tab
Then click "Advanced"
Click "Disable inheritance" and select the first option
Then delete all users except for your username
After completion, it should look like this
Then apply and confirm, go back to VSCode
You should now be able to connect to the server normally
Conclusion#
The images in this article may appear blurry because they were directly captured using Snipaste and saved in webp format, so I won't be lazy next time
This article is synchronized updated to xLog by Mix Space
The original link is https://blog.nekorua.com/posts/maintain/92.html