Community
cancel
Showing results for 
Search instead for 
Did you mean: 
goodle06
Novice
262 Views

DevCloud connection via VSCode failure

Hello!

I'm struggling to connect to devCloud with VSCode. I've successfully aquired node and perfomed port forwarding, but couldn't connect VS Code to Intel DevCloud. I get following errors from VS Code:

[14:37:37.294] Log Level: 2
[14:37:37.298] remote-ssh@0.63.0
[14:37:37.298] win32 x64
[14:37:37.299] SSH Resolver called for "ssh-remote+devcloud-vscode", attempt 1
[14:37:37.300] "remote.SSH.useLocalServer": false
[14:37:37.300] "remote.SSH.showLoginTerminal": false
[14:37:37.300] "remote.SSH.remotePlatform": {}
[14:37:37.301] "remote.SSH.sshPath": C:\cygwin64\bin\ssh.exe
[14:37:37.301] "remote.SSH.sshConfigurationFile": C:\cygwin64\home\JackOfShadows\.ssh\config
[14:37:37.301] "remote.SSH.useFlock": true
[14:37:37.301] "remote.SSH.lockfilesInTmp": false
[14:37:37.301] "remote.SSH.localServerDownload": auto
[14:37:37.301] "remote.SSH.remoteServerListenOnSocket": false
[14:37:37.301] "remote.SSH.showLoginTerminal": false
[14:37:37.302] SSH Resolver called for host: devcloud-vscode
[14:37:37.302] Setting up SSH remote "devcloud-vscode"
[14:37:37.327] Using commit id "5d424b828ada08e1eb9f95d6cb41120234ef57c7" and quality "stable" for server
[14:37:37.332] Install and start server if needed
[14:37:41.356] Checking ssh with "C:\cygwin64\bin\ssh.exe -V"
[14:37:41.500] > OpenSSH_8.4p1, OpenSSL 1.1.1f  31 Mar 2020

[14:37:41.507] Remote command length: 8092/8192 characters
[14:37:41.510] Using SSH config file "C:\cygwin64\home\JackOfShadows\.ssh\config"
[14:37:41.511] Running script with connection command: "C:\cygwin64\bin\ssh.exe" -T -D 56108 -F "C:\cygwin64\home\JackOfShadows\.ssh\config" "devcloud-vscode" powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -Command "powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -EncodedCommand $([Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('CiR1dWlkPSJiMGEyOGM2NGEzYTQiCiIke3V1aWR9OiBydW5uaW5nIgokUHJvZ3Jlc3NQcc2xlZXAg//...//MzAKfQo=')))))"  # RemoteSSHConfigurationScript
[14:37:41.512] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[14:37:41.708] > The command line is too long.
> ]0;C:\WINDOWS\System32\cmd.exe
[14:37:41.708] Got some output, clearing connection timeout
[14:37:42.041] "install" terminal command done
[14:37:42.042] Install terminal quit with output: ]0;C:\WINDOWS\System32\cmd.exe
[14:37:42.042] Received install output: ]0;C:\WINDOWS\System32\cmd.exe
[14:37:42.043] Stopped parsing output early. Remaining text: ]0;C:\WINDOWS\System32\cmd.exe
[14:37:42.043] Failed to parse remote port from server output
[14:37:42.052] Resolver error: Error: 
    at Function.Create (c:\Users\JackOfShadows\.vscode\extensions\ms-vscode-remote.remote-ssh-0.63.0\out\extension.js:1:64027)
    at Object.t.handleInstallOutput (c:\Users\JackOfShadows\.vscode\extensions\ms-vscode-remote.remote-ssh-0.63.0\out\extension.js:1:62766)
    at k (c:\Users\JackOfShadows\.vscode\extensions\ms-vscode-remote.remote-ssh-0.63.0\out\extension.js:1:312915)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async c:\Users\JackOfShadows\.vscode\extensions\ms-vscode-remote.remote-ssh-0.63.0\out\extension.js:1:310801
    at async Object.t.withShowDetailsEvent (c:\Users\JackOfShadows\.vscode\extensions\ms-vscode-remote.remote-ssh-0.63.0\out\extension.js:1:405790)
    at async Object.t.resolve (c:\Users\JackOfShadows\.vscode\extensions\ms-vscode-remote.remote-ssh-0.63.0\out\extension.js:1:314454)
    at async c:\Users\JackOfShadows\.vscode\extensions\ms-vscode-remote.remote-ssh-0.63.0\out\extension.js:127:110333
[14:37:42.061] ------


What might be a problem here?


0 Kudos
6 Replies
goodle06
Novice
231 Views

Got it working myself. If you have the same problem it's because you need to choose target platform Linux when connecting VS Code, not Windows like I did. Intel, pls update your instruction.

JananiC_Intel
Moderator
217 Views

Hi,


Thanks for posting in Intel forums and also thanks for your feedback.


Glad to know that your issue got resolved.Based on your feedback, we would like to know the documentation followed and also the appropriate steps to be corrected.


Regards,

Janani Chandran




JananiC_Intel
Moderator
190 Views

Hi,


Thanks for your valuable feedback.We found the steps to be corrected in the documentation and have informed the concerned about this.Since your issue is resolved can we close the case?


Regards,

Janani Chandran


goodle06
Novice
185 Views

Yes, ofc.

goodle06
Novice
184 Views

JananiC_Intel
Moderator
138 Views

Hi,


Thanks for the update and confirmation.


We would discontinue monitoring this issue. Please raise a new thread if you have any further issues.


Regards,

Janani Chandran