admin管理员组文章数量:1208155
I'm unable to set up my lightning AI environment on local machine. I have performed all the steps upto the first image shown with this issue.
As i click on "Connect local VS Code", it opens up my local VS Code, tries the connection
This error pops up
I've tried pinging lightning's ssh on local powershell terminal, ping works fine.
I'm unable to set up my lightning AI environment on local machine. I have performed all the steps upto the first image shown with this issue.
As i click on "Connect local VS Code", it opens up my local VS Code, tries the connection
This error pops up
I've tried pinging lightning's ssh on local powershell terminal, ping works fine.
Share Improve this question edited Jan 19 at 19:35 James Z 12.3k10 gold badges27 silver badges47 bronze badges asked Jan 19 at 16:57 Chinmaya TewariChinmaya Tewari 92 bronze badges 1- Attach the error's text into the question, not just screenshot of the error – Artur Minin Commented Jan 20 at 10:40
1 Answer
Reset to default 0Have you generated a key pair and added the public key to the remote server? It will be used as your credential for authentication.
If not, you can generate a 4096-bit RSA key pair by running ssh-keygen -t rsa -b 4096 -C "[email protected]"
in cmd with your email address as a comment. Copy everything from your public key file C:\Users\<username>\.ssh\id_rsa.pub
and paste it into the appropriate SSH settings on the remote server.
Finally, specify the location of your private key file in your SSH configuration file, so the client process can send the correct response when the server challenges your identity. The config file is usually located at C:\Users\<username>\.ssh\config
. Find the entry for Host ssh.lightning.ai
and add IdentityFile ~/.ssh/id_rsa
to it.
After completing the above tasks, SSH should be working correctly. I apologize if it does not resolve your issue; we can discuss further if needed.
本文标签: Unable to connect Lightning AI to local vs code via SSHStack Overflow
版权声明:本文标题:Unable to connect Lightning AI to local vs code via SSH - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738730226a2109281.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论