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
Add a comment  | 

1 Answer 1

Reset to default 0

Have 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