丁瑜. 2022-04-29 18:22 采纳率: 0%
浏览 74
已结题

在Ubuntu上用ssh连接远程服务器失败log如下


17:39:07.922] Log Level: 2
[17:39:07.922] remote-ssh@0.78.0
[17:39:07.923] linux x64
[17:39:07.927] SSH Resolver called for "ssh-remote+10.126.62.75", attempt 1
[17:39:07.927] "remote.SSH.useLocalServer": false
[17:39:07.927] "remote.SSH.showLoginTerminal": true
[17:39:07.928] "remote.SSH.remotePlatform": {}
[17:39:07.928] "remote.SSH.path": undefined
[17:39:07.928] "remote.SSH.configFile": undefined
[17:39:07.928] "remote.SSH.useFlock": true
[17:39:07.928] "remote.SSH.lockfilesInTmp": false
[17:39:07.928] "remote.SSH.localServerDownload": auto
[17:39:07.929] "remote.SSH.remoteServerListenOnSocket": false
[17:39:07.929] "remote.SSH.showLoginTerminal": true
[17:39:07.929] "remote.SSH.defaultExtensions": []
[17:39:07.929] "remote.SSH.loglevel": 2
[17:39:07.929] "remote.SSH.enableDynamicForwarding": true
[17:39:07.930] "remote.SSH.enableRemoteCommand": false
[17:39:07.930] "remote.SSH.serverPickPortsFromRange": {}
[17:39:07.931] "remote.SSH.serverInstallPath": {}
[17:39:07.940] SSH Resolver called for host: 10.126.62.75
[17:39:07.941] Setting up SSH remote "10.126.62.75"
[17:39:07.948] Using commit id "dfd34e8260c270da74b5c2d86d61aee4b6d56977" and quality "stable" for server
[17:39:07.951] Install and start server if needed
[17:39:09.146] PATH: /usr/local/cuda-11.3/bin:/home/sunfanxiu/anaconda3/bin:/home/sunfanxiu/anaconda3/condabin:/usr/local/cuda-11.3/bin:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[17:39:09.146] Checking ssh with "ssh -V"
[17:39:09.155] > OpenSSH_7.6p1 Ubuntu-4ubuntu0.6, OpenSSL 1.0.2n  7 Dec 2017

[17:39:09.158] Running script with connection command: ssh -T -D 44669 -o ConnectTimeout=15 '10.126.62.75' bash
[17:39:09.847] > diguang@10.126.62.75's password: 
[17:39:09.849] Got some output, clearing connection timeout
[17:39:13.040] > 
[17:39:13.325] > 398e98f59ba8: running
> mkdir: cannot create directory '/home/diguang/.vscode-server': Permission denied
> Creating the server install dir failed...
> 398e98f59ba8: start
> exitCode==34==
> listeningOn====
> osReleaseId====
> arch====
> tmpDir==/tmp==
> platform====
[17:39:13.330] > unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> 398e98f59ba8: end
[17:39:13.330] Received install output: 
exitCode==34==
listeningOn====
osReleaseId====
arch====
tmpDir==/tmp==
platform====
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====

[17:39:13.331] Failed to parse remote port from server output
[17:39:13.332] Resolver error: Error: 
    at Function.Create (/home/sunfanxiu/.vscode/extensions/ms-vscode-remote.remote-ssh-0.78.0/out/extension.js:1:586041)
    at Object.t.handleInstallOutput (/home/sunfanxiu/.vscode/extensions/ms-vscode-remote.remote-ssh-0.78.0/out/extension.js:1:584693)
    at Object.t.tryInstall (/home/sunfanxiu/.vscode/extensions/ms-vscode-remote.remote-ssh-0.78.0/out/extension.js:1:681924)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home/sunfanxiu/.vscode/extensions/ms-vscode-remote.remote-ssh-0.78.0/out/extension.js:1:644564
    at async Object.t.withShowDetailsEvent (/home/sunfanxiu/.vscode/extensions/ms-vscode-remote.remote-ssh-0.78.0/out/extension.js:1:647909)
    at async Object.t.resolve (/home/sunfanxiu/.vscode/extensions/ms-vscode-remote.remote-ssh-0.78.0/out/extension.js:1:645643)
    at async /home/sunfanxiu/.vscode/extensions/ms-vscode-remote.remote-ssh-0.78.0/out/extension.js:1:722950
[17:39:13.338] ------




[17:39:13.694] "install" terminal command done
[17:39:13.698] Install terminal quit with output: 


  • 写回答

5条回答 默认 最新

  • 不会长胖的斜杠 后端领域新星创作者 2022-04-29 18:32
    关注
    获得1.40元问题酬金

    检查一下ssh服务和22端口是否正常开启

    评论

报告相同问题?

问题事件

  • 系统已结题 5月7日
  • 创建了问题 4月29日

悬赏问题

  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
  • ¥30 c#打开word开启修订并实时显示批注
  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境
  • ¥30 关于#java#的问题,请各位专家解答!
  • ¥30 vue+element根据数据循环生成多个table,如何实现最后一列 平均分合并
  • ¥20 pcf8563时钟芯片不启振