当前位置:网站首页>Using slurm cluster computing node debugger in vscode
Using slurm cluster computing node debugger in vscode
2022-06-21 12:55:00 【Challow】
problem
The problem is vscode When debugging in the cluster, you cannot automatically enter compute node, But stay in login node
- Suppose you have passed vscode Remote connection server
Solution
- 1 Through the command ssh To the cluster
ssh cluster - 2 In the cluster authorized_keys add to Local laptops or desktops Of
public key- (windows The path of the system is
C:\Users\yourusername\.ssh\id_rsa.pub, If not, you can pass through the terminalssh-keygen -t rsaCommand to generate , Just press enter ) - ( In the cluster authorized_keys stay
~/.ssh/authorized_keys)
- (windows The path of the system is
- 3 Get computing resources from the cluster , That is to ensure that you are under the login node
ssh gpunodeWas a success - 4 Get the name of the computing node , Let's say it's
gpunode - 5 edit Local laptops or desktops Of config file
# Name the login node casually
Host loginnode
# Of the login node ip
HostName 127.0.0.1
# The user name of the login node
User lihua
# Of the login node port
Port 22
# The name of the computing node can be chosen randomly
Host computenode
# there name It is you who can pass through at the computing node ssh gpunode Direct entry
HostName gpunode
# The user name of the login node
User lihua
# Login node name , Keep up with the above
ProxyJump loginnode
Then you can connect directly to the computing node locally ! In this case, there is no debug It is still the trouble of logging in to the node
Conclusion
If you have any questions, please leave a message , If you can, please give me a favor ~~(#^.^#)
Reference link
https://stackoverflow.com/questions/60141905/how-to-run-code-in-a-debugging-session-from-vs-code-on-a-remote-using-an-interac
边栏推荐
猜你喜欢

PHP使用Grafika合成图片,生成海报图

Nouveau partage de l'expérience de travail à domicile

Interpretation of tamigou project: 34% equity transfer of Jining Huayuan Project Management Co., Ltd

Educoder web exercises - interactive elements

居家办公初体验之新得分享| 社区征文

Subnet mask calculation

Centos7 deploying MySQL environment

【升级版学生信息管理系统】+文件操作+更多细节

还在用generator生成xxx管理系统的CRUD代码?来看看我是怎么写的

Analysis on the wallet system architecture of Baidu trading platform
随机推荐
机器学习探索共价键碳的亚稳态相图,未来可用于发现或设计亚稳态材料
uva11292
12 tips for achieving it agility in the digital age
uva11292
Educoder Web练习题---文本层次语义元素
塔米狗 热门资讯:厦门产权交易中心再创第一次!
uva11300
Nine trends and priorities that CIOs need to focus on in 2022
Shell process control - 35. Multi branch case conditional statements
UVA1203 Argus
爱可可AI前沿推介(6.21)
《预训练周刊》第50期:无解码变换器、神经提示搜索、梯度空间降维
Questions and answers No. 43: application performance probe monitoring principle PHP probe
处理接口幂等性的两种常见方案
uva11995
《网络是怎么样连接的》读书笔记 - ADSL
Two common schemes for handling interface idempotence
Educator web exercise - create a drop-down list
愿山河无恙
Six relationships of UML - system learning IV