V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
jzq526
V2EX  ›  问与答

吐槽一下 vscode 的 remote ssh

  •  
  •   jzq526 · 2019-09-16 15:13:52 +08:00 · 7562 次点击
    这是一个创建于 1655 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天无意中发现 vscode 的插件中有个 remote ssh,微软自己出的,号称能连接到远程服务器上做开发。正好家里有台旧机子,因为配置低,装了个 32 位 ubuntu 当下载服务器用,总寻思着能用它干点别的,这下能用上。 兴冲冲看教程,装插件,配置,最后……连接失败 一开始以为哪一步配置错了,又走了一遍,还是有问题。而且输入错误密码时会提示密码错误,输入正确密码提示连接失败…… 于是重新看了看文档,嗯,发现这么了一段:

    Remote SSH Host: A running SSH server on:
    
    x86_64 Debian 8+, Ubuntu 16.04+, CentOS / RHEL 7+.
    ARMv7l (AArch32) Raspbian Stretch/9+ (32-bit).
    Experimental (VS Code Insiders only): ARMv8l (AArch64) Ubuntu 18.04+ (64-bit).
    

    好吧, 是我大意了,没看到最前面那个x86_64,原来只支持 64 位系统……但为什么下面是 32 位树莓派就支持了呢? 下次看教程要认真了

    5 条回复    2023-11-19 11:09:26 +08:00
    huawuya
        1
    huawuya  
       2019-09-16 16:27:58 +08:00
    https://code.visualstudio.com/docs/remote/ssh
    Visual Studio Code uses SSH configuration files and requires SSH key based authentication to connect to your host. If you do not have a host yet, you can create a Linux VM on Azure or setup an SSH host on an existing machine.

    一直用的 64 位系统,没试过 32 位的系统。不过 remote ssh 只能通过 SSH key based authentication 方式,不能通过用户名密码方式连接。
    vscode 通过 ssh 远程开发调试还是挺方便的。
    qingjiedou
        2
    qingjiedou  
       2019-09-16 16:41:26 +08:00
    @huawuya remote ssh 可以通过用户名密码方式连接,但是需要设置 Always reveal the SSH login terminal,不过由于要输入两次密码,所以还是用 ssh-key 更方便。
    jzq526
        3
    jzq526  
    OP
       2019-09-17 10:40:29 +08:00
    @huawuya 其他方法我也试了,确实是不支持 32 位 ubuntu
    jzq526
        4
    jzq526  
    OP
       2019-09-17 10:46:43 +08:00
    @huawuya @jzq526 又试了一下,树莓派上是成功的,看来确实是只支持微软列出来的那几个系统
    dragoooon
        5
    dragoooon  
       130 天前
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1171 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:28 · PVG 02:28 · LAX 11:28 · JFK 14:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.