Cursor<>Replit via SSH not working

hi all, i’m trying to carry my replit instance over to cursor via ssh.

steps i’m following:

i’m creating the ssh key for replit in cursor, then adding the key to Replit.

From replit, i copy the generated Shell command.

In cursor, I hit “Open with SSH” and then paste the command. I then hit “+ Add New SSH Host” below it

in the new field that shows up below it, i paste the shell command again.

I then see these options pop up:

Host *.replit.dev Port 22 IdentityFile ~/.ssh/replit
Settings specify a custom configuration file
Help about SSH configuration files

I select the first option, “Host *.replit.dev Port 22 IdentityFile ~/.ssh/replit”

and nothing happens.

No connection made, or any sign of life at all.

Anyone happen to know if my settings are off in Cursor or Replit, or if I’m doing something wrong?

2 Likes

I am having a similar issue. Also trying to connect to Replit. When I click Open with SSH I am not prompted to paste the command and “Add New SSH Host”

1 Like

I also have an issue. after adding the new ssh host it asks me to chose a platform (linux, windows, macos) and after i do that i get the error message.
im on windows btw but chosing the other two doesent work either:

2 Likes

I was able to eventually get to the same point after installing an SSH extension.

2 Likes

you also get the error after chosing the platform?

2 Likes

Yes - same error for selecting any platform. I though Linux would have been the correct one to use for Replit.

1 Like

I seem to have the same issue, have to choose a platform (Windows, MacOS or Linux) and no matter which I pick, I get the same error…

2 Likes

I have a similar issue. When i paste in the ssh key cursor continuously asks for an ssh password which i don’t have. And then it gives me an error message

1 Like

I’m also getting the same, issue…

When opening a ssh connection, and clicking ‘connect’ it tells me to choose which OS the replit is using (I presume its the same instance I am running on my machine?) I have tried all options and getting connection cant be established, thought it might be something to do with the path perhaps, but could be wrong… if anyone got this sorted let me know! + points if you are on windows

1 Like

Hey everyone!

I’m on windows 11, trying to connect Cursor to Replit via SSH. I’ve been following along with Riley Brown’s video, but disappointingly I’m not able to get these tools connected so I can start making things.

I’m getting the same issues as you all too, got to the point where it asked me to pick an OS (tried all three and it failed to connect each time).


UPDATE

Replit updated to create a button to connect to cursor and it works!

When it asks, select Linux!

1 Like

same here, i just purchased Cursor today and am dead in the water with this same issue with Replit

1 Like

Facing the same issue, tried updating to the new version 0.40.1 still the same results.

1 Like

Does anything additional need to be configured here? I am getting prompted with inputting a password on the Cursor side when trying to connect. Replit docs make it sound like no password is needed given the keys are used for auth. If I just hit enter through the password prompts I get an error in connecting.

It was an encoding issue with the config file for me. This fixed it:

I had to reformat my machine, but got it working!

same issue as well, haven’t been able to solve it, any help will be appreciated -

I found out that the issue lies within the configuration file. When you add a new host on cursor and it asks you to connect. if you are using a windows machine instead of clicking onto to connect open the configuration file.

Delete everything inside the file, click on cntrl +K ask cursor to generate a new configuration file using the following information:

" Host *.replit.dev
Port 22
IdentityFile ~/.ssh/replit "

And the Shell command in the connect manually section from replit to Connect manually

“Use the command below to connect via CLI or another IDE.”

Let cursor wite the new configuration file, save it and close cursor. now go to your replit account and open cursor using the " Launch Cursor" function and when it pops up select Linux. It should start loading up.

1 Like

That worked! Wonderful man, thank you for your help.

Hi Chris I did everything you said and still got this problem

Please click More Actions, then copy/paste the error logs shown