Remote-SSH in mac's Vscode cannot connect to the server, but you can connect using SSH in the terminal

Remote-SSH in Vscode cannot connect to the server, but I can connect using SSH in the terminal. I have tried various methods.
Finally, I was going to delete the configuration file and found that I didn't have permission.
I suspect that I used conda to manage the environment, which may have caused the base environment permissions to change?
In short, I enable permissions in the vscode terminal:

sudo chmod -R 777 /Users/【你的地址】/Library/Application\ Support/Code

(This will grant all users read, write, and execute permissions to the folder and all its contents. Please note that this may pose a potential security risk, so proceed with caution) You can use the ls -ld command to view the
files folder permissions. The following is the command to view the permissions of the Code folder:

ls -ld /Users/【你的地址】/Library/Application\ Support/Code

That's solved

Guess you like

Origin blog.csdn.net/weixin_44210987/article/details/131058353