【windows10】+【vscode】远程

本地配置服务器的免密登录

  1. 下载Git客户端
  2. 在windows使用Git bash执行命令
    ssh-keygen -t rsa
    ssh-copy-id -p 端口 用户名@ip
    

vscode配置

  1. 在VS Code扩展商店中搜索remote安装Remote Development
  2. 使用ctrl+shift+p的快捷键调用命令,执行Remote-SSH:Connect to Host,然后选择配置config文件的路径
    Host server1
    	Hostname xxx.xxx.xxx.xxx
    	User xx
    
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐