Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
891 Discussions

Access to DevCloud using VSCode via proxy

GRN2
Employee
714 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
611 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

6 Replies
AlekhyaV_Intel
Moderator
668 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

 

GRN2
Employee
640 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...

 

AlekhyaV_Intel
Moderator
612 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

 

AlekhyaV_Intel
Moderator
572 Views

Hi,


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


Regards,

Alekhya



GRN2
Employee
556 Views
AlekhyaV_Intel
Moderator
546 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


Reply