安装扩展 Remote SSH
Getting started
Follow the step-by-step tutorial or if you have a simple SSH host setup, connect to it as follows:
Press F1 and run the Remote-SSH: Open SSH Host… command.
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
If prompted, enter your password (but we suggest setting up key based authentication).
After you are connected, use File > Open Folder to open a folder on the host.
You can press F1 to bring up the Command Palette and type in Remote-SSH for a full list of available commands.
点击左下角绿色按钮 ><
点击 Connect to Host
选择 Add New SSH Host
输入用户名和服务器地址
ssh username@ServerAddress