当前位置:   article > 正文

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

ssh child died, shutting down

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

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:

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/177738
推荐阅读
相关标签
  

闽ICP备14008679号