VScode使用remote ssh远程连接无法保存文件,vscode-remote://ssh-remote
·
在VScode上下载remote ssh插件远程连接Ubuntu之后,编辑代码后想要保存时,VScode提示无法保存,vscode-remote://ssh-remote,permission denied。说明权限不够。
解决方法:
- 打开terminal(在Ubuntu上打开或者在VScode上打开都可以)
- su root,输入密码,进入root模式
- chmod 777 xxx,xxx为想保存的文件/文件夹,修改文件权限,使所有用户都可以读写执行文件。
- 在VScode中远程保存成功!
更多推荐
所有评论(0)