Vscode connects to the server remotely and configures nginx

first step:

  • Install the plugin:
    Insert picture description here

Second step

  • 1. Create a folder locally to synchronize server files (nginx files)
    1. Then configure the source configuration file information
      Insert picture description here
  • After configuration information
    Insert picture description here

Insert picture description here
Then enter the user name and password in the above prompt box;

shh link command

1. ssh root(用户名)@127.0.0.1(自己的IP地址)
2 .回车输入密码

在修改了默认的 ssh端口时,需要指明端口
ssh root(用户名)@127.0.0.1(自己的IP地址) -p 8888(指定自己设置的端口)

Guess you like

Origin blog.csdn.net/pythonstrat/article/details/110720868