vscodeリモート開発環境構築


文書ディレクトリ
一、Windows側の環境構成
 ローカルホストはssh-clientをインストールする必要があります.gitを使用してインストールできます.手順は次のとおりです.
   gitbash,        ,F:\gitbash\Git\usr\bin

  .ssh  ,       ,   “mkdir ~/.ssh”    
cd ~/.ssh

     name email,     github name email:
git config --global user.name "   "
git config --global user.email "  "

  key:
ssh-keygen -t rsa -C"  "

  3   ,         :id_rsa id_rsa.pub。

       :
ssh root@      ip  

二、Linux端の環境配置
Linux側はssh-serverを開く必要があります.手順は次のとおりです.
#         SSH  
sudo apt-get install openssh-server

#   SSH        
sudo ps -e | grep ssh

#          SSH  
sudo service ssh start

#   SSH      
vim /etc/ssh/sshd_config
#    :       "PermitRootLogin without-password“     ”#“ ,     
#    :    ”PermitRootLogin yes"

#   ssh  
/etc/init.d/ssh restart

三、vscodeの配置
  インストール手順は次のとおりです.
https://segmentfault.com/a/1190000020896603?utm_source=tag-newest https://blog.csdn.net/Mculover666/article/details/90439669 https://zhuanlan.zhihu.com/p/95678121