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

无法使用vscode连接devcloud

MarsPJ
Beginner
3,585 Views

无法使用vscode连接到devcloud,window10,连接错误界面为:

Snipaste_2023-10-08_22-33-44.png

配置文件内容为:

Snipaste_2023-10-08_22-35-54.png

微信图片_20231008223723.png

0 Kudos
1 Solution
JaideepK_Intel
Employee
2,840 Views

Hi,


I hope you are doing well.


One of our team mates contacted you privately and shared some details, can we go ahead and close this case?


Thanks,

Jaideep


View solution in original post

0 Kudos
18 Replies
JaideepK_Intel
Employee
3,558 Views

Hi,


Thank you for posting in intel communities. We only provide support in English. I have translated your question.

>>Unable to use vscode to connect to devcloud, window10, the connection error interface is:


Does this reflect your question correctly?


If yes means, could you please share screenshots of error in english.


Thanks,

Jaideep






0 Kudos
JaideepK_Intel
Employee
3,542 Views

Hi,

 

Thanks for sharing the screenshot, Please modify your config file as shown below.

 


# DevCloud VSCode config

Host devcloud-vscode
 UserKnownHostsFile /dev/null
 StrictHostKeyChecking no
 HostName localhost
 User uxxxxxx
 Port 4022
 IdentityFile ~/.ssh/devcloud-access-key-xxxxxx.txt
 ProxyCommand ssh -T -i ~/.ssh/devcloud-access-key-xxxxxx.txt guest@ssh.devcloud.intel.com

 

Please change the port number to 4022 and also add the proxy command as shown above. After modifying the config file try to connect to devcloud. (looks like below screenshot after a successful connection)

JaideepK_Intel_0-1696849877650.png

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!

 

Regards,

Jaideep

 

 

 

0 Kudos
MarsPJ
Beginner
3,537 Views

I couldn't connect to devcloud even after I changed the config file

Snipaste_2023-10-09_19-18-08.pngSnipaste_2023-10-09_19-18-29.png

0 Kudos
JaideepK_Intel
Employee
3,522 Views

Hi,

 

Can you please go to the below link and check whether you can access jupyter notebook or not? Also, check if your account is expired or not from the same link.

JaideepK_Intel_1-1696863428906.png

 

JaideepK_Intel_0-1696863371748.png

 

link: https://devcloud.intel.com/oneapi/get_started/

 

Thanks,

Jaideep

 

0 Kudos
MarsPJ
Beginner
3,511 Views

It can be accessed normally and has not expired

 

 

 

 

 

ed74a1c4-36b0-4768-bfb8-f7294701de7d.png

 

Snipaste_2023-10-09_23-11-15.png

 

 

 

  

 

0 Kudos
JaideepK_Intel
Employee
3,510 Views

Hi,

 

From the above error, we can assume that the path to the key may be wrong or key might be corrupted or the key may not have enough permissions.

error:

JaideepK_Intel_0-1696865023067.png

file permissions for .ssh and for config:

JaideepK_Intel_1-1696865080374.png

 

 

Thanks,

Jaideep

 

0 Kudos
MarsPJ
Beginner
3,497 Views

On windows, I checked the.ssh and config permissions, and they are the same as your instance. As a side note, I also get Permission denied (publickey) when I try to connect directly with ssh on linux (without vscode).

0 Kudos
MarsPJ
Beginner
3,477 Views

Does this have anything to do with me being a user in China? But I can't even hang up VPN

0 Kudos
MarsPJ
Beginner
3,476 Views

Does this have anything to do with me being a user in China? But I couldn't connect to devcloud even through VPN

0 Kudos
JaideepK_Intel
Employee
3,442 Views

Hi,


I hope you are doing well.


One of our teammates is going to share the devcloud key privately. Please change the current key with the new key and try the same from your end. Please let us know if the issue still persists.


If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!


Regards,

Jaideep


0 Kudos
JaideepK_Intel
Employee
3,183 Views

Hi,


I hope you are doing well.


Can we go ahead and close this thread? or if you still face the issue please let us know.


Thanks,

Jaideep


0 Kudos
MarsPJ
Beginner
3,171 Views

I tried to use the new key you provided, but it still shows the same error. In addition, since the deadline of Hackfair is approaching, I choose to use jupyter lab provided by you for development now, and I want to ignore ssh. Thank you for your help!

0 Kudos
JaideepK_Intel
Employee
3,144 Views

Hi,

 

Can you please remove (rm - rf ~/.ssh/known_hosts) the file with the name know_hosts in ~/.ssh path and try again?

Please check ~/.ssh directory permissions as well.

chmod 600 ~/.ssh/devcloud-access-uxxxxxx.txt
chmod 600 ~/.ssh/config

JaideepK_Intel_0-1697695500791.png

 

Thanks,

Jaideep

 

 

0 Kudos
MarsPJ
Beginner
3,135 Views
0 Kudos
JaideepK_Intel
Employee
3,125 Views

Hi,

 

For windows it will be there in the below directory.

default directory: C:\Users\<user_name>\.ssh

JaideepK_Intel_0-1697705428195.png

Thanks,

Jaideep

0 Kudos
JaideepK_Intel
Employee
2,841 Views

Hi,


I hope you are doing well.


One of our team mates contacted you privately and shared some details, can we go ahead and close this case?


Thanks,

Jaideep


0 Kudos
JaideepK_Intel
Employee
2,635 Views

Hi,


Good day to you


Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks,

Jaideep


0 Kudos
Reply