How To SSH From Cursor

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 10

  • @parkerrex
    @parkerrex 2 месяца назад +1

    this was clutch thank you

  • @alexandremarcil498
    @alexandremarcil498 2 месяца назад +1

    Still not working for me... getting the same error as before:
    [Trace - 22:37:29.70] Server install command stderr:
    mkdir: cannot create directory ‘/home/alex/.cursor-server/bin’: Permission denied

    • @teddyfulk
      @teddyfulk  2 месяца назад

      at which part are you stuck at? make sure you don't have the cursor or vscode suggested remote ssh extensions installed. those need to be removed/uninstalled and use the specific one I mention and it's in the description.

  • @teddyfulk
    @teddyfulk  2 месяца назад

    Sorry for the video cutting out in the end. Idk what happened, something was lossy when uploading from Descript to YT. Please ask any questions here.

  • @TheChucky777
    @TheChucky777 Месяц назад

    Can you do this for windows because its totally different and i will definitely appreciate it

    • @teddyfulk
      @teddyfulk  Месяц назад

      Unfortunately, I don’t have a windows machine. But I would think the steps are similar.
      1. ssh-keygen -t rsa -b 4096. You'll be prompted to choose a location to save the key. By default, it will suggest:
      `C:\Users\YourUsername\.ssh\id_rsa`
      - You can press Enter to accept the default location or specify a different one.
      - You'll be asked to enter a passphrase (optional but recommended for security).
      2. SSH key location:
      - If you accepted the default location, Windows will create a `.ssh` directory in your user profile folder:
      `C:\Users\YourUsername\.ssh`
      - This directory will contain your private key (`id_rsa`) and public key (`id_rsa.pub`).
      3. Using the SSH keys:
      - To use these keys for SSH connections, you'll need to add the public key to the `~/.ssh/authorized_keys` file on the Linux machine you want to connect to.
      - You can then connect using the command:
      `ssh username@linux_machine_ip -i C:\Users\YourUsername\.ssh\id_rsa`
      4. Do the same thing in video for the ssh/config. That shows cursor the machine you have just setup.
      5. Use that extension from that forum I mentioned in video. And don’t have any other remote ssh extension installed or it will try to use those and will not work.

  • @TimExcellent
    @TimExcellent 12 дней назад

    haha wasted an entire afternoon on this crap, honestly... why... still doesnt work, works fine from VSCode, just not Cursor

    • @teddyfulk
      @teddyfulk  11 дней назад

      Yeah I know, hope the video helped