Visual Studio Code Remote Connection.
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.
-
I download VSC Extensions: Remote-SSH.
-
Press F1, write “ssh open”, and click.
-
Then, you can see “C:\Users[your User Name].ssh\config”
-
Open Puttygen, press “Generate Button”, and press “Save public key” on your “~.ssh\config” folder.
-
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.
-
After save config file, press F1, write connect, and click your connection.
-
It will be connected.
Leave a comment