1,设置密钥参考VS Code SSH 远程连接服务器及坑点解决_vscode-cli-611f9bfce64f25108829dd295f54a6894e87339-CSDN博客
2,
远程服务器需要下载
sudo apt-get install wget
sudo apt-get install curl
3,代理设置
https://bobbyhadz.com/blog/error-while-fetching-extensions-xhr-failed#:~:text=XHR%20failed%22%20error%20occurs%20when%20you%20have%20internet,%28or%20Command%20%2B%20Shift%20%2B%20P%20on%20macOS%29.