Remote Development Visual Studio Code
Connecting to a Remote SSH host using Visual Studio Code
From the command palette open Remote-SSH
Add the below two entries. User and complete path to the private key file.
User deepakkumarsray2027
IdentityFile "C:\Users\deepakray\Downloads\gcppvtkey25042025.ppk
Now, again select Remote SSH → Connect to Host → Select the IP
Error - Could not establish connections to “ip” : Connecting was canceled.
This is because the private key that we have generated is not in OpenSSH format. So, we will convert it into OpenSSH format.
Open PuTTYgen
Conversions → Export OpenSSHKey and save the file.
I have saved it as gcppvtkey01052025_vscode
Now, again open the config file and edit the config file to reflect this file.
Try again:
No comments:
Post a Comment