windows 10使用vscode进行远程代码开发 | tutorial to use vscode for remote development using ssh on windows

本文首发于个人博客https://kezunlin.me/post/c93b6ba6/,欢迎阅读最新内容!

tutorial to use vscode for remote development using ssh on windows

Guide

server

sudo apt-get install openssh-server

local

  1. install ssh-client on local machine.
  2. download VSCodeUserSetup-x64-1.36.1.exe from here and install.
  3. start vscode and install Remote Development extension.
  4. ctrl+shift+p and enter remote-ssh and configure for ssh.

edit ~/.ssh/config

    Host node08
        HostName 192.168.100.08
        User root

     Host node09
        HostName 192.168.100.09
        User root 

use ssh-keygen instead of username and password
copy local ~/.ssh/id_rsa.pub to remote ~/.ssh/authorized_keys

ssh-keygen
ls .ssh/
id_rsa  id_rsa.pub  known_hosts

ssh-copy-id node08
ssh-copy-id node09

OK. Now we can ssh without password like this:

# usage
ssh node08
ssh node09

debug python with vscode

Ctrl+Shift+P
Python: Select Interpreter

~/anaconda3/envs/torch/bin/python

Debug shortcuts

F11 step in
F10 step over
F5 continue

Reference

History

  • 20190729: created.

Copyright

原文地址:https://www.cnblogs.com/kezunlin/p/11952880.html

时间: 2024-08-28 11:23:12

windows 10使用vscode进行远程代码开发 | tutorial to use vscode for remote development using ssh on windows的相关文章

Microsoft Windows OpenType Compact字体格式远程代码执行漏洞(MS11-007)

漏洞描述 Microsoft Windows是微软发布的非常流行的操作系统. OpenType Compact Font Format (CFF)驱动程序错误解析特制OpenType字体的方式存在远程代码执行漏洞,攻击者可利用此漏洞在内核模式中执行任意代码,然后安装程序:查看.更改或上传数据. <*链接:https://docs.microsoft.com/en-us/security-updates/securitybulletins/2011/ms11-007 *> 解决方法 厂商补丁:

Microsoft Windows Kernel .fon字体文件远程代码执行漏洞(MS11-077)

漏洞描述 Microsoft Windows是流行的计算机操作系统. IWindows Kernel在.fon字体文件的处理上存在远程代码执行漏洞,远程攻击者可利用此漏洞以内核权限执行任意代码,导致完全控制受影响计算机. <*来源:Will Dorman 链接:https://docs.microsoft.com/en-us/security-updates/securitybulletins/2011/ms11-077 *> 解决方法 厂商补丁: Microsoft --------- Mi

Microsoft Windows Messenger ActiveX控件远程代码执行漏洞(MS11-027)

漏洞描述 此次扫描检测到目标主机尚未安装MS11-027/KB2508272漏洞相应的HotFix,也未安装可以修正该漏洞的Service Pack,这意味着目标主机可能存在MS11-027/KB2508272漏洞. Microsoft Windows是微软发布的非常流行的操作系统. Microsoft Windows Messenger ActiveX控件在实现上存在远程代码执行漏洞,远程攻击者可利用此漏洞在使用ActiveX应用程序中执行任意脚本代码. Microsoft Internet

使用openssl在windows 10下本地xampp配置https开发环境

安装win64OpenSSL-1_1_0j后重新启动:以管理员权限启动powershell; 执行以下命令 set OPENSSL_CONF=c:\xampp\apache\conf\openssl.cnf openssl req -config c:\xampp\apache\conf\openssl.cnf -new -out c:\xampp\apache\conf\server.csr -keyout c:\xampp\apache\conf\server.pemopenssl rsa

用Node.js开发Windows 10物联网应用

(此文章同时发表在本人微信公众号"dotNET每日精华文章",欢迎右边二维码来关注.) 未来10年内,物联网将会如移动互联网这样深入到我们生活的各方各面.所以微软现在对物联网进行了大量的投资,比如Windows 10就有一个单独的IoT版本.而今天推荐的文章是告诉大家如何把Node.js开发带到Windows 10 IoT中. 在月初Build大会上,微软发布了Windows 10 IoT Core Insider Preview,这个版本可以安装到树莓派2(Raspberry Pi

Windows 10 新特性 -- Bing Maps 3D地图开发入门(一)

本文主要内容是讲述如何创建基于 Windows Universal App 的Windows 10 3D地图应用,涉及的Windows 10新特性包括 Bing Maps 控件.Compiled data bindings (x:Bind),SplitView 和Hamburger. 本文中的示例源代码已在github 上共享( https://github.com/gaoxuesong/navigado ). 获取Bing Maps密钥 在 Universal Windows App 中使用必

Windows 7/8/10 系统下Laravel框架的开发环境安装及部署详解(Vagrant + Homestead)

注意! laravel/homestead box项目地址已经不再是原来的 https://atlas.hashicorp.com/laravel/boxes/homestead 而已经变更成 https://app.vagrantup.com/laravel/boxes/homestead 如果是刚刚接触Laravel的朋友,请直接按文中步骤操作.需要更新及重装的朋友们请注意使用第二个地址来进行文中操作. 虽然我通常习惯在Linux环境下工作,但对于一个从小就接触Windows的人来说,能够在

玩转 Windows 10 中的 Linux 子系统(SSH服务)

在今年的 Build 2016 上,微软向全世界介绍了他们还处于 Beta 阶段的 Windows 下的 Linux 子系统Windows Subsystem for Linux(WSL),它可以让开发者们在 Windows 10 下通过 Bash shell 运行原生的 Ubuntu 用户态二进制程序.如果你参与了 Windows Insider 计划,你就可以在最新的 Windows 10 年度升级版的 Insider 构建版中体验这个功能了.Web 开发人员们不用再苦恼所用的 Window

【WinHec启示录】透过Windows 10技术布局,谈微软王者归来

每个时代都有王者,王者的成功,往往是因为恰逢其时地发布了一个成功的产品(具有里程碑意义,划时代的产品).Windows 95的成功标示着微软是PC时代的王者:WinXP的成功标示着微软是互联网时代的王者:而恰恰是Windows Vista.Windows 7和Windows 8对移动互联网时代的忽视,王者地位拱手让人:在即将来临的物联网时代,Windows 10的即将成功,预示着微软将成为物联网时代的王者. 物联网的三要素,无非是云.入口.端.而微软恰恰在这三点上,都已经完成了最重要的布局. 一