lukasz-wronski / vscode-ftp-sync

Ftp Sync plugin for Visual Studio Code
https://marketplace.visualstudio.com/items/lukasz-wronski.ftp-sync
320 stars 89 forks source link

sync error bad privatekey path #131

Open QwertyZW opened 7 years ago

QwertyZW commented 7 years ago

VSCode: 1.9.1 Extension: 0.3.2 I'm getting this error in the debug console

messageService.ts:126 Ftp-sync: sync error: Error: ENOENT: no such file or directory, open 'C:\Program Files (x86)\Microsoft VS Code\‪C:\cygwin64\home\<me>\.ssh\id_rsa'

Config:

{
    "remotePath": "/var/www/html",
    "host": "<host>",
    "username": "root",
    "password": "password",
    "port": 4022,
    "secure": true,
    "protocol": "sftp",
    "uploadOnSave": true,
    "passive": false,
    "debug": false,
    "privateKeyPath": "‪C:\\cygwin64\\home\\<me>\\.ssh\\id_rsa",
    "passphrase": null,
    "ignore": [
        "\\.vscode",
        "\\.git",
        "\\.DS_Store"
    ]
}
ZanderBrown commented 7 years ago

Try: "privateKeyPath": "‪..\\..\\cygwin64\\home\\<me>\\.ssh\\id_rsa",

WORMSS commented 7 years ago

I found it easier to just do c:/you/get/the/idea/.