Reputation: 1005
Struggling to make Remote-SSH working in VS Code.
My local machine is Windows 10 and remote machine is Ubuntu 20.04. I have set configuration file "config" in C:\Users\xxx.ssh folder as bellow:
Host EC2
HostName ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com
User xxxx
IdentityFile D:/1WWW/KeyPairs/myKeyPair.pem
But its not working.
I am sure there is some problem in my identityFile path, but I don't know what. Any guidance please.
Upvotes: 1
Views: 4399
Reputation: 343
Did you try the following syntax:
Host EC2
HostName ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com
IdentityFile /D:/1WWW/KeyPairs/myKeyPair.pem
User xxxx
Upvotes: 0
Reputation: 1
I would suggest to use puttygen.exe to generate a pair of public/private key.
Anyway the private key generated is not directly usable (it has a .ppk extension) and you need to go to Convertions -> Export OpenSSH key to get your private key in RSA format that can be used in the IdentityFile
Upvotes: 0