Visual Studio Code Remote Connection.

less than 1 minute read

After I touch something about SSH, I can’t use my VSC Remote-SSH.

So, I erase everything about SSH in the Raspberry Pi and Window PC.

Last post : https://lcooldong.github.io/SSH_ERROR/

I can use Putty again, but still I can’t use VSC.

Therefore, I found some solution.

  1. I download VSC Extensions: Remote-SSH.

  2. Press F1, write “ssh open”, and click.

  3. Then, you can see “C:\Users[your User Name].ssh\config”

  4. Open Puttygen, press “Generate Button”, and press “Save public key” on your “~.ssh\config” folder.

  5. Go to the config file. Write your Raspi4 Ip. :


Host raspi4_WiFi
    HostName [Your IP Number]
    Port 22
    User ubuntu
    IdentityFile ~\.ssh\keys

This is Example of my WiFi Connection.

  1. After save config file, press F1, write connect, and click your connection.

  2. It will be connected.


GO TO TOP

Updated:

Leave a comment