V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
shizukupr

关于在使用 vscode remote ssh 连接的一些奇怪问题

  •  
  •   shizukupr · Sep 5, 2023 · 1711 views
    This topic created in 968 days ago, the information mentioned may be changed or developed.

    我使用 yubikey 来认证服务器登录,这种方式每次登录都需要输入密钥的 PIN 并触碰密钥
    在使用 vscode insider 远程连接服务器的时候需要输入两次 PIN ,其中第二次需要在 vscode output 里面一个 SSH Tunnel 的窗口中输入,从 log 中可以看到这是在自动转发某个端口。需要输入两次 PIN 且第二次还需要在一个极其隐蔽的地方输入实在有点膈应,不知道各位有没有遇到过类似的情况,以及有没有什么办法可以解决一下这个两次认证的问题。

    2 replies    2023-09-05 20:41:33 +08:00
    RageBubble
        1
    RageBubble  
       Sep 5, 2023
    我没用 yubikey ,我是直接用 vscode 的插件 remote explorer ,然后在.ssh 配置文件里指定公钥的位置,每次就可以直接连接。( windows11 )
    在另一台电脑上( windows10 ),vscode 似乎会监测到我在用 1passoword (里面存储了公钥),所以每次都要我输入 1passoword 的密码,然后才能连接。
    14
        2
    14  
       Sep 5, 2023
    我也用的是 Yubikey ,使用 VS Code Remote 全程无密码,我是通过 GPG 配置 SSH_AUTH_SOCK 实现的,然后设置了缓存时间
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:30 · PVG 06:30 · LAX 15:30 · JFK 18:30
    ♥ Do have faith in what you're doing.