remote-sync
remote-sync copied to clipboard
Uncaught Error: privateKey value does not contain a (valid) private key
Occurs when a file is saved in the same folder as .remote-sync.json. Private key is in format: ssh-rsa <key value>== rsa-key-<key name> My apologies, I cannot recall what the name of the format is. It was generated using PuTTYgen on the same machine.
.remote-sync.json file has the following text, with some sensitive details removed: "logger": { "title": "Remote Sync" }, "uploadOnSave": true, "useAtomicWrites": false, "deleteLocal": false, "hostname": "<ip address>", "port": "22", "target": "<target>", "ignore": [ ".remote-sync.json", ".git/**" ], "username": "<username>", "keyfile": "<location>", "watch": [], "transport": "scp", "useAgent": true }
Note that I also tried setting "useAgent" to false. The same issue arrises regardless of the value.
Atom: 1.36.0 x64 Electron: 2.0.18 OS: Microsoft Windows 10 Pro Thrown From: remote-sync package 4.1.8
Stack Trace
Uncaught Error: privateKey value does not contain a (valid) private key
At C:\Users\Owner\.atom\packages\remote-sync\node_modules\ssh2\lib\client.js:232
Error: privateKey value does not contain a (valid) private key
at Client.connect (/packages/remote-sync/node_modules/ssh2/lib/client.js:232:13)
at ScpTransport.module.exports.ScpTransport._getConnection (/packages/remote-sync/lib/transports/ScpTransport.coffee:179:16)
at ScpTransport.module.exports.ScpTransport.upload (/packages/remote-sync/lib/transports/ScpTransport.coffee:54:6)
at UploadListener.module.exports.UploadListener.processFile (/packages/remote-sync/lib/UploadListener.coffee:48:17)
at /packages/remote-sync/node_modules/async/dist/async.js:4096:9
at Object.process (/packages/remote-sync/node_modules/async/dist/async.js:2344:17)
at /packages/remote-sync/node_modules/async/dist/async.js:2252:19
at Immediate._onImmediate (/packages/remote-sync/node_modules/async/dist/async.js:119:16)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
Commands
2x -1:54.6.0 core:save (input.hidden-input)
Non-Core Packages
dbg 1.6.3
dbg-gdb 1.7.8
language-matlab-octave 0.3.0
output-panel 0.3.4
remote-sync 4.1.8