Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1208 Discussions

Can't connect to Devcloud by VSCODE

gabrielchin
Employee
301 Views
gabrielchin_1-1669825485799.png
 
[00:22:34.717] Log Level: 2
[00:22:34.721] remote-ssh@0.92.0
[00:22:34.721] win32 x64
[00:22:34.727] SSH Resolver called for "ssh-remote+devcloud-vscode", attempt 1
[00:22:34.727] "remote.SSH.useLocalServer": false
[00:22:34.727] "remote.SSH.showLoginTerminal": false
[00:22:34.728] "remote.SSH.remotePlatform": {}
[00:22:34.728] "remote.SSH.path": C:\cygwin64\bin\ssh.exe
[00:22:34.728] "remote.SSH.configFile": C:\cygwin64\home\gabri\.ssh\config
[00:22:34.728] "remote.SSH.useFlock": true
[00:22:34.728] "remote.SSH.lockfilesInTmp": false
[00:22:34.728] "remote.SSH.localServerDownload": auto
[00:22:34.728] "remote.SSH.remoteServerListenOnSocket": false
[00:22:34.729] "remote.SSH.showLoginTerminal": false
[00:22:34.729] "remote.SSH.defaultExtensions": []
[00:22:34.729] "remote.SSH.loglevel": 2
[00:22:34.729] "remote.SSH.enableDynamicForwarding": true
[00:22:34.729] "remote.SSH.enableRemoteCommand": false
[00:22:34.730] "remote.SSH.serverPickPortsFromRange": {}
[00:22:34.730] "remote.SSH.serverInstallPath": {}
[00:22:34.735] SSH Resolver called for host: devcloud-vscode
[00:22:34.735] Setting up SSH remote "devcloud-vscode"
[00:22:34.742] Using commit id "6261075646f055b99068d3688932416f2346dd3b" and quality "stable" for server
[00:22:34.747] Install and start server if needed
[00:22:36.208] Checking ssh with "C:\cygwin64\bin\ssh.exe -V"
[00:22:36.244] > OpenSSH_9.1p1, OpenSSL 1.1.1s  1 Nov 2022

 

[00:22:36.248] Using SSH config file "C:\cygwin64\home\gabri\.ssh\config"
[00:22:36.248] Remote command length: 6205/8192 characters
[00:22:36.248] Running script with connection command: "C:\cygwin64\bin\ssh.exe" -T -D 62032 -F "C:\cygwin64\home\gabri\.ssh\config" "devcloud-vscode" powershell
[00:22:36.252] Terminal shell path: C:\Windows\System32\cmd.exe
[00:22:40.537] > ssh: connect to host localhost port 5022: Connection refused
> ]0;C:\Windows\System32\cmd.exe
[00:22:40.538] Got some output, clearing connection timeout
[00:22:40.548] > The process tried to write to a nonexistent pipe.
[00:22:41.810] "install" terminal command done
[00:22:41.810] Install terminal quit with output: ssh: connect to host localhost port 5022: Connection refused
[00:22:41.811] Received install output: ssh: connect to host localhost port 5022: Connection refused
[00:22:41.811] Failed to parse remote port from server output
[00:22:41.813] Resolver error: Error:
    at g.Create (c:\Users\gabri\.vscode\extensions\ms-vscode-remote.remote-ssh-0.92.0\out\extension.js:1:583821)
    at t.handleInstallOutput (c:\Users\gabri\.vscode\extensions\ms-vscode-remote.remote-ssh-0.92.0\out\extension.js:1:582473)
    at t.tryInstall (c:\Users\gabri\.vscode\extensions\ms-vscode-remote.remote-ssh-0.92.0\out\extension.js:1:679811)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async c:\Users\gabri\.vscode\extensions\ms-vscode-remote.remote-ssh-0.92.0\out\extension.js:1:642614
    at async t.withShowDetailsEvent (c:\Users\gabri\.vscode\extensions\ms-vscode-remote.remote-ssh-0.92.0\out\extension.js:1:645932)
    at async t.resolve (c:\Users\gabri\.vscode\extensions\ms-vscode-remote.remote-ssh-0.92.0\out\extension.js:1:643664)
    at async c:\Users\gabri\.vscode\extensions\ms-vscode-remote.remote-ssh-0.92.0\out\extension.js:1:722342
[00:22:41.820] ------
 
setup-devcloud-access-179515.txt 
 

################################################################################################
# oneAPI DevCloud SSH config
################################################################################################
Host devcloud
User u179515
IdentityFile ~/.ssh/devcloud-access-key-179515.txt
ProxyCommand ssh -T -i ~/.ssh/devcloud-access-key-179515.txt guest@ssh.devcloud.intel.com

Host devcloud.proxy
User u179515
Port 4022
IdentityFile ~/.ssh/devcloud-access-key-179515.txt
ProxyCommand ssh -T devcloud-via-proxy

# If you must route outgoing SSH connection via a corporate proxy,
# replace PROXY_HOSTNAME and PORT below with the values provided by
# your network administrator.
Host devcloud-via-proxy
User guest
Hostname ssh.devcloud.intel.com
IdentityFile ~/.ssh/devcloud-access-key-179515.txt
LocalForward 4022 c009:22
ProxyCommand nc -x PROXY_HOSTNAME:PORT %h %p
################################################################################################

################################################################################################
# DevCloud VSCode config
################################################################################################
Host devcloud-vscode
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
Hostname localhost
User u179515
Port 5022
IdentityFile ~/.ssh/devcloud-access-key-179515.txt
################################################################################################

################################################################################################
# SSH Tunnel config
################################################################################################
Host *.aidevcloud
User u179515
IdentityFile ~/.ssh/devcloud-access-key-179515.txt
ProxyCommand ssh -T devcloud nc %h %p
LocalForward 5022 localhost:22
LocalForward 5901 localhost:5901
################################################################################################

EOF

 
0 Kudos
3 Replies
Rahila_T_Intel
Moderator
266 Views

Hi,

Thank you for posting in Intel communities.

Are you trying ssh with proxy? If so, you have to update the config file by adding .proxy under SSH Tunnel config.

Please refer the attached screenshot.


Also please confirm whether you are able to connect Intel DevCloud using Cygwin terminal without using VSCode.


Thanks


Rahila_T_Intel
Moderator
218 Views

Hi,


We have not heard back from you. Is your issue resolved?


Thanks


Rahila_T_Intel
Moderator
192 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks


Reply