VSCode Remote-SSH (Windows)

1. VSCode 安装

VSCode

2. 安装扩展 Remote SSH

VSCode Remote-SSH (Windows)_第1张图片
VSCode Remote-SSH (Windows)_第2张图片

Getting started

Follow the step-by-step tutorial or if you have a simple SSH host setup, connect to it as follows:

  1. Press F1 and run the Remote-SSH: Open SSH Host… command.
  2. Enter your user and host/IP in the following format in the input box that appears and press enter: user@host-or-ip or user@domain@host-or-ip
  3. If prompted, enter your password (but we suggest setting up key based authentication).
  4. After you are connected, use File > Open Folder to open a folder on the host.

VSCode Remote-SSH (Windows)_第3张图片
远程资源管理器
VSCode Remote-SSH (Windows)_第4张图片

3. 使用

配置 config 文件

VSCode Remote-SSH (Windows)_第5张图片

回车

输入服务器信息, 保存
Host:机器名称
HostName:IP 地址
User:用户名
VSCode Remote-SSH (Windows)_第6张图片
保存后会生成一个以 Host:机器名称命名的 remote

VSCode Remote-SSH (Windows)_第7张图片
连接
VSCode Remote-SSH (Windows)_第8张图片
VSCode Remote-SSH (Windows)_第9张图片

选择操作系统
VSCode Remote-SSH (Windows)_第10张图片

输入密码
VSCode Remote-SSH (Windows)_第11张图片
连接成功!

你可能感兴趣的:(工具,服务器,vscode,ssh,ide)