Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: privateKey value does not contain a (valid) private key #501

Open
mmanou opened this issue Apr 21, 2019 · 0 comments
Open

Comments

@mmanou
Copy link

mmanou commented Apr 21, 2019

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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant