1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| vscode-insiders 内部测试版:
192c817fd350bcbf3caecae22a45ec39bae78516 是本次本部的 commitID
下载 VScode-insiders https://code.visualstudio.com/insiders/ 得到:VSCodeUserSetup-x64-1.54.0-insider.exe
下载 server-linux-x64 https://update.code.visualstudio.com/commit:192c817fd350bcbf3caecae22a45ec39bae78516/server-linux-x64/insider 得到:vscode-server-linux-x64.tar.gz
下载 Remote-ssh https://marketplace.visualstudio.com/VSCode 在搜索栏搜索remote ssh,点击 Download Extension 得到:ms-vscode-remote.remote-ssh-0.64.0.vsix
下载 cpptools-linux.vsix https://marketplace.visualstudio.com/VSCode 在搜索栏搜索cpptools-linux,点击 Download Extension 得到:cpptools-linux.vsix
生成秘钥对 ssh-keygen -f id_rsa 一直回车 得到:id_rsa,id_rsa.pub
Windows 安装 vscode 略...
安装 remote-ssh 略...
安装 server-linux-x64 root@shenzhen:~# wget https://update.code.visualstudio.com/commit:192c817fd350bcbf3caecae22a45ec39bae78516/server-linux-x64/insider -O vscode-server-linux-x64.tar.gz root@shenzhen:~# mkdir -p ~/.vscode-server-insiders/bin/ root@shenzhen:~# tar xf vscode-server-linux-x64.tar.gz -C ~/.vscode-server-insiders/bin/ root@shenzhen:~# mv ~/.vscode-server-insiders/bin/vscode-server-linux-x64 ~/.vscode-server-insiders/bin/192c817fd350bcbf3caecae22a45ec39bae78516
添加 远程认证 C:\Users\chunli\.ssh\config Host fly.li-chunli.top HostName fly.li-chunli.top User root Port 62222 IdentityFile ~/.ssh/id_rsa
倒入公钥到对方的机器 cat id_rsa.pub >> ~/.ssh/authorized_keys
安装 cpptools 远程机器 cpptools-linux.vsix
|