# Cursor\<\>Replit via SSH not working

**URL:** <https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689>\
**Category:** Help\
**Created:** [August 23, 2024, 12:17am UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689 "2024-08-23T00:17:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrjazz](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mrjazz](https://forum.cursor.com/u/mrjazz)\
**Post date:** [August 23, 2024, 12:17am UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/1 "2024-08-23T00:17:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![fka\_zest](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@fka\_zest](https://forum.cursor.com/u/fka_zest)\
**Post date:** [August 23, 2024, 7:07pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/2 "2024-08-23T19:07:57Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![Witti](https://avatars.discourse-cdn.com/v4/letter/w/258eb7/32.png) [@Witti](https://forum.cursor.com/u/Witti)\
**Post date:** [August 23, 2024, 8:10pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/3 "2024-08-23T20:10:22Z")

</div>

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:

 ![grafik](https://us1.discourse-cdn.com/cursor1/original/2X/4/447aff8de25ece718ecb784e130598176a5a4a5c.png)

---

<div class="post-metadata">

**Author:** ![fka\_zest](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@fka\_zest](https://forum.cursor.com/u/fka_zest)\
**Post date:** [August 23, 2024, 8:19pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/4 "2024-08-23T20:19:57Z")

</div>

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

 ![linux question](https://us1.discourse-cdn.com/cursor1/original/2X/6/6b4268c4ba0b04debbed4461084cf7b9fcdd60aa.png)

---

<div class="post-metadata">

**Author:** ![Witti](https://avatars.discourse-cdn.com/v4/letter/w/258eb7/32.png) [@Witti](https://forum.cursor.com/u/Witti)\
**Post date:** [August 23, 2024, 9:10pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/5 "2024-08-23T21:10:32Z")

</div>

you also get the error after chosing the platform?

---

<div class="post-metadata">

**Author:** ![fka\_zest](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@fka\_zest](https://forum.cursor.com/u/fka_zest)\
**Post date:** [August 23, 2024, 9:19pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/6 "2024-08-23T21:19:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dutchbase](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Dutchbase](https://forum.cursor.com/u/Dutchbase)\
**Post date:** [August 24, 2024, 1:41pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/7 "2024-08-24T13:41:52Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![F.zefse](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@F.zefse](https://forum.cursor.com/u/F.zefse)\
**Post date:** [August 24, 2024, 9:37pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/8 "2024-08-24T21:37:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Hach](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@Hach](https://forum.cursor.com/u/Hach)\
**Post date:** [August 26, 2024, 6:53am UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/9 "2024-08-26T06:53:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adamviaja](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@adamviaja](https://forum.cursor.com/u/adamviaja)\
**Post date:** [August 28, 2024, 2:03am UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/10 "2024-08-28T02:03:52Z")

</div>

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](https://www.youtube.com/watch?v=SYoYo-FZyno&t=319s), 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!

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/2/29670819b028955da549378575223156676c0e96.png)

---

<div class="post-metadata">

**Author:** ![LaHatte](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/lahatte/32/3548_2.png) [@LaHatte](https://forum.cursor.com/u/LaHatte)\
**Post date:** [August 28, 2024, 4:01am UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/11 "2024-08-28T04:01:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chris.P](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@Chris.P](https://forum.cursor.com/u/Chris.P)\
**Post date:** [August 28, 2024, 4:02am UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/12 "2024-08-28T04:02:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fka\_zest](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@fka\_zest](https://forum.cursor.com/u/fka_zest)\
**Post date:** [August 28, 2024, 2:29pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/13 "2024-08-28T14:29:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![openintro](https://avatars.discourse-cdn.com/v4/letter/o/a3d4f5/32.png) [@openintro](https://forum.cursor.com/u/openintro)\
**Post date:** [August 30, 2024, 12:51pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/14 "2024-08-30T12:51:39Z")

</div>

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

> <https://stackoverflow.com/questions/55693854/getting-bad-configuration-option-377-376h>

---

<div class="post-metadata">

**Author:** ![mrjazz](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mrjazz](https://forum.cursor.com/u/mrjazz)\
**Post date:** [August 30, 2024, 10:15pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/15 "2024-08-30T22:15:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kahmad](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@kahmad](https://forum.cursor.com/u/kahmad)\
**Post date:** [September 1, 2024, 1:42pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/16 "2024-09-01T13:42:07Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/c/c1e06ce1f6a2fb9f8f5a07d62de2d98ba45eb1e7.png)

---

<div class="post-metadata">

**Author:** ![Chris.P](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@Chris.P](https://forum.cursor.com/u/Chris.P)\
**Post date:** [September 1, 2024, 6:58pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/17 "2024-09-01T18:58:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kahmad](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@kahmad](https://forum.cursor.com/u/kahmad)\
**Post date:** [September 4, 2024, 5:35pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/18 "2024-09-04T17:35:12Z")

</div>

> [@Chris.P](#):
>
> Use the command below to connect via CLI or another IDE

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

---

<div class="post-metadata">

**Author:** ![philchau.92](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/philchau.92/32/4262_2.png) [@philchau.92](https://forum.cursor.com/u/philchau.92)\
**Post date:** [September 8, 2024, 1:37am UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/19 "2024-09-08T01:37:38Z")

</div>

> [@Chris.P](#):
>
> 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.

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

 ![0bb5b13cde087c24f02c6cfa7abb1fc4](https://us1.discourse-cdn.com/cursor1/original/2X/4/4602fdec8c5e902ad7a7f1a0c6202dafda6d82e0.png)

---

<div class="post-metadata">

**Author:** ![tmm1](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tmm1/32/3131_2.png) [@tmm1](https://forum.cursor.com/u/tmm1)\
**Post date:** [September 10, 2024, 6:27pm UTC](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689/20 "2024-09-10T18:27:49Z")

</div>

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

[Next page](https://forum.cursor.com/t/cursor-replit-via-ssh-not-working/11689.md?page=2)
