vs2017无法连接远程服务器,visual studio code连接远程服务器失败

本文讲述了在使用Visual Studio Code通过Remove-SSH插件连接远程服务器时遇到的问题,重点分析了报错日志,特别关注了秘钥配置可能的解决方案,适合VSCode用户解决SSH连接难题。
摘要由CSDN通过智能技术生成

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

visual studio code连接远程服务器失败,我安装了插件Remove - SSH 然后链接远程服务器后,服务器地址,用户名,密码,都没问题,但是就是连不上,看报错的log,不知道是不是我的秘钥的问题,如下是我的log,求大神指点迷津:

[11:23:34.501] Log Level: 2[11:23:34.502] remote-ssh@0.51.0[11:23:34.503] linux x64[11:23:34.504] SSH Resolver called for "ssh-remote+192.168.108.23", attempt 1[11:23:34.504] SSH Resolver called for host: 192.168.108.23[11:23:34.504] Setting up SSH remote "192.168.108.23"[11:23:34.507] Acquiring local install lock: /tmp/vscode-remote-ssh-192.168.108.23-install.lock[11:23:34.511] Looking for existing server data file at /home/wanghao/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-192.168.108.23-cd9ea6488829f560dc949a8b2fb789f3cdc05f5d-0.51.0/data.json[11:23:34.512] Using commit id "cd9ea6488829f560dc949a8b2fb789f3cdc05f5d" and quality "stable" for server[11:23:34.517] Install and start server if needed[11:23:34.544] Checking ssh with "ssh -V"[11:23:34.550] > OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017[11:23:34.552] Using SSH config file "/home/wanghao/.ssh/config"[11:23:34.552] askpass server listening on /run/user/1000/snap.code/vscode-ssh-askpass-049ca0aab6d788b4e0bf25e03c5d273ca9cd93d7.sock[11:23:34.552] Spawning local server with {"ipcHandlePath":"/run/user/1000/snap.code/vscode-ssh-askpass-2e83f5b0c5b836d192f6245a5429cbc3119420fa.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","38443","-o","ConnectTimeout=82","-F","/home/wanghao/.ssh/config","192.168.108.23"],"dataFilePath":"/home/wanghao/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-192.168.108.23-cd9ea6488829f560dc949a8b2fb789f3cdc05f5d-0.51.0/data.json"}[11:23:34.552] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/home/wanghao/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/snap/code/35/usr/share/code/code","VSCODE_SSH_ASKPASS_MAIN":"/home/wanghao/.vscode/extensions/ms-vscode-remote.remote-ssh-0.51.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/run/user/1000/snap.code/vscode-ssh-askpass-049ca0aab6d788b4e0bf25e03c5d273ca9cd93d7.sock"}[11:23:34.559] Spawned 3649[11:23:34.618] > local-server> Spawned ssh: 3665[11:23:34.619] stderr> OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017[11:23:34.651] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:l6hMA9u86lZ5jeF+9KkPuZDwczMGLJqasuq6P9CQNco[11:23:34.777] Got askpass request: {"request":"hao_wang@192.168.108.23's password:"}[11:23:34.778] Showing password prompt[11:23:34.780] Listening for interwindow password on /run/user/1000/snap.code/vscode-ssh-askpass-e065dc3898c4788edb63e330732a38a0c804578b.sock[11:23:34.780] Writing password prompt to globalState[11:23:39.542] Got password response[11:23:39.543] Interactor gave response: ******[11:23:39.543] Cleaning up other-window auth server[11:23:39.563] stderr> Authenticated to 192.168.108.23 ([192.168.108.23]:22).[11:23:39.613] stderr> Transferred: sent 1860, received 2496 bytes, in 0.0 seconds[11:23:39.613] stderr> Bytes per second: sent 38566.8, received 51754.1[11:23:39.613] > local-server> ssh child died, shutting down[11:23:39.620] Local server exit: 0[11:23:39.621] Received install output: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017debug1: Server host key: ecdsa-sha2-nistp256 SHA256:l6hMA9u86lZ5jeF+9KkPuZDwczMGLJqasuq6P9CQNcoAuthenticated to 192.168.108.23 ([192.168.108.23]:22).Transferred: sent 1860, received 2496 bytes, in 0.0 secondsBytes per second: sent 38566.8, received 51754.1

[11:23:39.622] Stopped parsing output early. Remaining text: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017debug1: Server host key: ecdsa-sha2-nistp256 SHA256:l6hMA9u86lZ5jeF+9KkPuZDwczMGLJqasuq6P9CQNcoAuthenticated to 192.168.108.23 ([192.168.108.23]:22).Transferred: sent 1860, received 2496 bytes, in 0.0 secondsBytes per second: sent 38566.8, received 51754.1[11:23:39.622] Failed to parse remote port from server output[11:23:39.624] Resolver error:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值