banner
libxcnya.so

libxcnya.so

Nothing...
telegram
twitter
github
email

Fixing VSCode SSH connection error "Bad owner or permissions on ..."

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 connect directly to the server using VSCode to check the logs. Then the situation in the image below occurred.

1

Solution#

What's going on? Take a closer look at the output message Bad owner or permissions on C:\\Users\\Administrator/.ssh/config

2

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

3

Right-click and go to the "Security" tab

4

Then click "Advanced"

5

Click "Disable inheritance" and select the first option

6

Then delete all users except for your username

7

After completion, it should look like this

8

Then apply, OK, and go back to VSCode

9

You should now be able to connect to the server normally

10

Conclusion#

The images in this article may appear blurry because they were directly saved in webp format using Snipaste. I won't be lazy next time

This article is synchronized and updated by Mix Space to xLog
The original link is https://blog.nekorua.com/posts/maintain/92.html


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.