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

Access to DevCloud using VSCode via proxy

GRN2
Employee
1,264 Views

Hello,

I'm trying to create tunnel (port forwarding) but I failed:

1st step: ssh devcloud.proxy and qsub -I work fine. I'm able to connect to head node and create interactive job.

2nd step. I'm trying to connect to compute node in the second terminal, but failed:

ssh s001-n016.aidevcloud
ssh: connect to host ssh.devcloud.intel.com port 22: Connection timed out
ssh_exchange_identification: Connection closed by remote host
ssh_exchange_identification: Connection closed by remote host

 

So, I cann't create tunnel and connect using VSCode via Remote-SSH.

In case of proxy, I can work on DevCloud only in terminal.

 

I see this issue both on the Windows and Linux machines. 

 

Thanks.

 

0 Kudos
1 Solution
AlekhyaV_Intel
Moderator
1,161 Views

Hi,

 

From the question we could see that you’re connecting to devcloud using “ssh devcloud.proxy”. Ensure you’re connecting to devcloud using “ssh devcloud” instead of devcloud.proxy as devcloud is the entry according to the above sent config file.

vscode_ssh.png

  1. Please copy/paste the contents of config file that we had sent previously.
  2. In the config file, <proxy_name> and <port> are the hostname and port of the corporate proxy respectively. It is usually provided to you by your IT department.
  3. Please replace <user> with your devcloud userid which is of the form uXXXXX.
  4. In first linux terminal
    1. Execute ssh devcloud

    2. Execute qsub -I(copy the node number)

  5. In second linux terminal(Don’t close the first terminal, keep it open)
    1. Execute ssh node_number.aidevcloud

    2. Port forwarding is done

  6. Then follow the remaining steps in Microsoft Visual studio, please follow: https://devcloud.intel.com/oneapi/documentation/connect-with-vscode/
  7. If the above steps doesn’t work, Could you please share with us your config file through private message?

 

Regards,

Alekhya

 

View solution in original post

0 Kudos
6 Replies
AlekhyaV_Intel
Moderator
1,218 Views

Hi,

 

Thank you for posting in Intel Forums. We've provided the content of the config file below so that you could modify your config file.

 

Host devcloud

User <user>

Port 4022

IdentityFile ~/.ssh/devcloud-access-key-<user>.txt

ProxyCommand ssh -T devcloud-via-proxy



Host devcloud-via-proxy

User guest

Hostname ssh.devcloud.intel.com

IdentityFile ~/.ssh/devcloud-access-key-<user>.txt

LocalForward 4022 c009:22

ProxyCommand nc -x <proxy_name>:<port> %h %p



# DevCloud VSCode config

Host devcloud-vscode

UserKnownHostsFile /dev/null

StrictHostKeyChecking no

Hostname localhost

User <user>

Port 5022

IdentityFile ~/.ssh/devcloud-access-key-<user>.txt



# SSH Tunnel config

Host *.aidevcloud

User <user>

IdentityFile ~/.ssh/devcloud-access-key-<user>.txt

ProxyCommand ssh -T devcloud nc %h %p

LocalForward 5022 localhost:22

LocalForward 5901 localhost:5901

 

Here, <proxy_name> and <port> are, respectively, the hostname and port of the corporate proxy. It is usually provided to you by your IT department.

 

Hope this helps!

 

Regards,

Alekhya

 

0 Kudos
GRN2
Employee
1,190 Views

Hi,

 

But this config file is the same as generated by setup-devcloud-access-user.txt. I use the same file and no success...

 

0 Kudos
AlekhyaV_Intel
Moderator
1,162 Views

Hi,

 

From the question we could see that you’re connecting to devcloud using “ssh devcloud.proxy”. Ensure you’re connecting to devcloud using “ssh devcloud” instead of devcloud.proxy as devcloud is the entry according to the above sent config file.

vscode_ssh.png

  1. Please copy/paste the contents of config file that we had sent previously.
  2. In the config file, <proxy_name> and <port> are the hostname and port of the corporate proxy respectively. It is usually provided to you by your IT department.
  3. Please replace <user> with your devcloud userid which is of the form uXXXXX.
  4. In first linux terminal
    1. Execute ssh devcloud

    2. Execute qsub -I(copy the node number)

  5. In second linux terminal(Don’t close the first terminal, keep it open)
    1. Execute ssh node_number.aidevcloud

    2. Port forwarding is done

  6. Then follow the remaining steps in Microsoft Visual studio, please follow: https://devcloud.intel.com/oneapi/documentation/connect-with-vscode/
  7. If the above steps doesn’t work, Could you please share with us your config file through private message?

 

Regards,

Alekhya

 

0 Kudos
AlekhyaV_Intel
Moderator
1,122 Views

Hi,


Has the solution provided helped? Please let us know if the issue still persists.


Regards,

Alekhya



0 Kudos
GRN2
Employee
1,106 Views
0 Kudos
AlekhyaV_Intel
Moderator
1,096 Views

Hi,


Thank you for accepting our solution. If you need any further assistance, please post a new question as this thread will no long be monitored.


Regards,

Alekhya


0 Kudos
Reply