Let’s talk about VSCode remote development (just a quick look)

Remote Development Architecture

Vscode remote development, so that you can complete all remote host development in the local environment, debugging operations. Think of it as a visual, enhanced VERSION of SSH.

  • SSH: indicates a remote host, such as centos and Ubuntu.
  • Container: indicates a docker Container.
  • WSL: No. No dice.

Environmental requirements

  • win10
  • Install the latest vscode
  • Install the Vscode Remote Development plug-in

  • SSH Host operating systems Debian 8+, Ubuntu 16.04+, CentOS/RHEL 7+

About Centos6 host upgrade (Centos7 host skipped)

wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x8 6_64.rpm wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55 .el6.x86_64.rpm wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55. el6.x86_64.rpm wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-5 5.el6.x86_64.rpm wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55 .el6.x86_64.rpm wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-5 RPM sudo RPM -uh --force --nodeps \ glibc-2.17-55.el6.x86_64. RPM \ glibc-common-2.17-55.el6.x86_64. RPM \ RPM \ glibc-static-2.17-55.el6.x86_64. RPM \ glibc-travel-2.17-55.el6.x86_64. RPM \ glibc-static-2.17-55.el6.x86_64. RPM \ Glibc - utils - 2.17-55. El6. X86_64. RPM# Update libstdc++wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-4.8.2-16 .3.el6.x86_64.rpm wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-devel-4. 8.2-16.3. El6. X86_64. RPM wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-static-4 .8.2-16.3.el6.x86_64. RPM sudo RPM -uh \ libstdc++-4.8.2-16.3.el6.x86_64. RPM \ libstdc++ -vel -4.8.2-16.3.el6.x86_64. RPM \ libstdc++ - static - 4.8.2-16.3 el6. X86_64. RPMCopy the code

SSH Remote Development

Win10 install OpenSSH

# open powershell
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
# Install the OpenSSH ClientAdd - WindowsCapability - Online - the Name OpenSSH. Client ~ ~ ~ ~ 0.0.1.0# Install the OpenSSH ServerAdd - WindowsCapability - Online - the Name OpenSSH. Server ~ ~ ~ ~ 0.0.1.0If you can use CMD or powershell to generate a public or private key, you should be able to use SSH.
# Generate your public and private keys, usually at C:\Users\{current user name}\.ssh
ssh-keygen -t rsa 
Copy the code

Add the contents of your id_rsa.pub file to the authorized_keys file on the remote host. The authorized_keys file is usually in /home/{username}/.

Configure the remote SSH host


Host {HostName} User {SSH} IdentityFile {C:\Users\{current User name}\.ssh\id_rsa Otherwise, password-free login will fail.Copy the code

After this configuration is completed, click the icon circled below the picture and wait for the remote host environment to be built.

  • Remote Terminal/New Terminal
  • Remote edit File File/Open File or File/Open Floder features too many, not a column number, remote development and local development there is no difference, you can try more yourself.

Docker remote development

Not often. I’ll update it when I use it

Java development plug-ins are recommended

Linux O&M and resource management plug-ins are recommended

Markdown plug-in

Copy image to MD file

Visual management of Docker plug-in