liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

Reading private key file failed #973

Closed Sjorsa closed 2 years ago

Sjorsa commented 2 years ago

Do you read the FAQ?

Describe the bug A clear and concise description of what the bug is.

It's probably not a bug and a fault on my end, sorry for making an issue but I could not find another way to ask this. I get the following error: Reading private key file C/Users/Sjors/Desktop/privateKey.ppk failed, {1} with the following configuration:

    "comment": "Please fill the following configuration, save it, then close the tab.",
    "host": "10.0.0.2",
    "port": 22,
    "username": "root",
    "privateKeyFile": "C/Users/Sjors/Desktop/privateKey.ppk"
}

I generated the private key file using PuttyGen.

I remember following the exact same procedure on my desktop, but on my laptop it isn't working.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Run command '....'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Extension Logs from Startup - required

  1. Open User Settings.

    • On Windows/Linux - File > Preferences > Settings
    • On macOS - Code > Preferences > Settings
  2. Set sftp.debug to true and reload vscode.
  3. Reproduce the problem, get the logs from View > Output > sftp.
Sjorsa commented 2 years ago

I'm using another extension to acces the files on my server now so I'll close this issue.

Kodesmeden commented 5 months ago

I have the same issue, what was the extension you chose?

Sjorsa commented 4 months ago

I think it was the Remote - SSH extension. I don't know if that will work for an ftp server tho.