lyhshjian 2020-04-17 11:18 采纳率: 0%
浏览 10303

VS Code + Remote SSH 远程开发,无法建立连接

win10系统上装virtualbox+ubuntu,想用VS Code + Remote SSH远程开发C++项目,在vs code里面总是链接不上。

[11:06:06.461] Log Level: 2
[11:06:06.464] remote-ssh@0.51.0
[11:06:06.464] win32 x64
[11:06:06.466] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a225562756e7475227d", attempt 1
[11:06:06.466] SSH Resolver called for host: Ubuntu
[11:06:06.466] Setting up SSH remote "Ubuntu"
[11:06:06.486] Using commit id "a9f8623ec050e5f0b44cc8ce8204a1455884749f" and quality "stable" for server
[11:06:06.488] Install and start server if needed
[11:06:07.959] Checking ssh with "ssh -V"
[11:06:08.013] > OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
[11:06:08.015] Running script with connection command: ssh -T -D 62196 Ubuntu bash
[11:06:08.025] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[11:06:08.091] > 
> 
> 
> ]0;C:\WINDOWS\System32\cmd.exe
[11:06:08.091] Got some output, clearing connection timeout
[11:06:08.098] > 
> 
> 
[11:06:10.391] > ssh: Ubuntu: no address associated with name
[11:06:10.401] > 
> 过程试图写入的管道不存在。
> 
[11:06:10.674] "install" terminal command done
[11:06:10.675] Install terminal quit with output: 过程试图写入的管道不存在。
[11:06:10.675] Received install output: 过程试图写入的管道不存在。
[11:06:10.676] Stopped parsing output early. Remaining text: 过程试图写入的管道不存在。
[11:06:10.676] Failed to parse remote port from server output
[11:06:10.677] Resolver error: 

配置文件是这样的

Host Ubuntu
    HostName 169.254.0.1
    User root
    Port 2201
    IdentifyFile "C:\Users\cfte\.ssh\id_rsa"

从命令行里通过ssh命令是可以连通的
图片说明

其实之前vs code里是可以连接的,但是昨天再用的时候发现怎么都连接不上了,折腾了一天也没成功。请诸位大神帮助!~~~

  • 写回答

3条回答 默认 最新

  • King_Cu 2020-04-19 20:13
    关注

    同问,同样的问题,简直一模一样,求大神!!
    找到了
    https://blog.csdn.net/TongxinV/article/details/94883101

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。