I’ve been using Komodo IDE for a while to access servers via SFTP using login ID and password; it works fine. I now need to access an AWS EC2 instance that requires a OpenSSH keyfile instead of a password. I am using Cyberduck also, and can access the server fine with that tool, but Komodo gives me an error:
[JavaScript Application]
Error: ‘nodename nor servname provided, or not known’
I’m using a Mac (latest OS) and the latest version of Komodo IDE. I’ve got the settings the same as Cyberduck: port 22, etc.
I wondered that, but Cyberduck is happy with the same config. Also, the error message comes up instantly, suggesting it is failing to initiate a connection attempt with the server rather than the server rejecting the connection.
Just because Cyberduck accepts something it doesn’t mean other apps will. Can you try connecting to that server using the key you provide to Komodo through your command like? ie. something like ssh -i /keyfile user@hostname
*.ppk is a Putty key. I’m not sure how CyberDuck handles that but with Komodo you need to make sure you’re key is added in Pageant. Komodo will then automatically use that.
Makes sense that we should check this to save people from using the wrong protocol who may not understand what they mean.
That’s a pain. This should be handled by the connection tool. Def need to see whats up there. It shouldn’t matter that you’ve added a “/”.
I don’t know what you mean by this.
This isn’t true, or at least I’m not able to reproduce an issue when adding “/” to the start of a path. That’s a bug if it’s not letting you specify the root directory.
I’ll file a couple enhancement requests based on your experience.
Carey
EDIT:
This is an alternative to using the Server Prefs key field. This is how you used to have to do it in Komodo. I think there might be an issue with Komodo and PPK files.
I think there might be a blank password, but nothing that has caused a problem elsewhere.
By “ignore the browse”, I mean that the UI looks like you point Komodo to the PPK file and go from there. Which is what CyberDuck does, for example. But it seems that that won’t get you anywhere with Komodo, it’s a red herring. Instead you need to do the ssh-add thing. Or go elsewhere in the Komodo UI. Browse shouldn’t be enabled for SFTP, I’d say.
That would defeat the purpose of that field. SFTP is when you need that field. I’ve had issues in other programs that barfed on PuTTY generated keys (same error you got about formatting) as they have a different format from ssh-keygen generated keys. The proper fix will be to figure out why Komodo can’t figure out how to use a PPK format key.
Just to clarify…I’ve been assuming you generated the key using PuTTY. Is that true or did Amazon provide a PPK file?
No that’s fine. You don’t HAVE to specify a key in the prefs. I don’t know off the top of my head what order they are used but I assume it’s the key in the prefs, then it checks to see if there is a valid key save in a SSH agent session or a Pageant session.
Are you comfortable cutting your private key out of the PPK file (add filler where it was) you got from Amazon generated then mailing it to me?