Shadow Walker
Shadow Walker

Reputation: 1199

How to connect to a remote server using PuTTY generated key

I'm trying to connect to a remote server using Remote Explorer extension in VSCode but when I use putty generate private key private.ppk I get an error

Could not establish a connection to

When I read through the error log, at the point it tried to load key C:\Users\user\.ssh\private.ppk, it says

Invalid Format

How can I use PuTTY format key to connect? Below is how my config looks like

Host ###.##.##.###
  HostName ###.##.##.###
  User <user>
  Port 22
  IdentityFile C:\Users\user\.ssh\private.ppk

Upvotes: 8

Views: 9286

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202098

The .ppk is a proprietary key format of PuTTY. Most other tools do not support it.

You will probably have to convert the key to OpenSSH format. Use PuTTYgen for that. Load the key and go to Conversions > Export OpenSSH key.

Upvotes: 16

Related Questions