Vscode uses ssh to remotely connect to linux

 1. vscode uses ssh to remotely connect to linux, so first make sure that vscode has installed these two plug-ins

2. Click the connection in the lower left corner 

 3. Select Connect to Host...

5. Enter according to the format,ssh 主机名@ip
such as mine:ssh [email protected]

 6. Select the first one to open the configuration file and make sure the input is correct

7. Reconnect again and there will be the host name we just configured. After clicking, enter the password and wait to connect successfully. 

 

Guess you like

Origin blog.csdn.net/weixin_64043217/article/details/132333135