-
-
Notifications
You must be signed in to change notification settings - Fork 39
[help-needed] privateKey without privateKeyPassphrase #22
Comments
I suppose at the end of the day it doesn't really matter as long as the key passphrase is different than the user account password. I'm just going to use a key with a passphrase and move on. Just wanted to say thanks once more for this awesome plugin! |
I have released a new version 0.40.0, which logs the error now to the log files inside your home directory. Can you update to it and post the error here (search for |
Updated and this is what the log shows after I get the error "Could not list directory '' TRACE list.listdirectory(2) - [08/Feb/2018:17:54:19 +0000] "Encrypted private key detected, but no passphrase given Stack: |
Thanks a lot! That means that ssh2-sftp-client module, I use in the extension, always expects a passphrase for a private key, what makes sense in my opinion. |
I agree. It was a key that I have been using for awhile and generating one with a passphrase works just fine. I REALLY appreciate your help checking it out, even if the issue I created seemed like it may be dumb on it's face. Keep up the great work! |
Description
Trying to list a remote directory using and sftp target using a privateKey but without a privateKeyPassphrase.
When I run the list directory command it says it could not list the directory.
The key was created without a passphrase. I have confirmed that a different key WITH a passphrase does work to list the directory along with a test of just username and password auth.
Actual behavior
Get a message saying [vscode-deploy-reloaded]::[target_name] Could not list directory '/' ('target_name'):
Expected behavior
Directory is listed with secondary commands
Steps to reproduce
Create privateKey without a passphrase.
Specify in target sftp config: example below
Example config
Logs
Your environment
Additional comments
I'm looking for a replacement for an old sublime sftp that I was using that is broken in macOS High Sierra. This plugin is awesome but I'm just having trouble figuring out how I can create the config without having to save passwords in it, either regular passwords or keyfile passphrases.
Any help is appreciated!
The text was updated successfully, but these errors were encountered: