what happens if you hit ‘Test Connection’ in your SSH Connection node?
I just tested it on my local machine (‘Use known hosts’ unchecked) and it works.
when testing the connection in the ssh connection node i get the same error in a message box
i tried it with both the .ssh/id_rsa and the .ssh/id_rsa.pub, which i typically use to make a normal ssh connection to the host.
any other ideas ?
maybe it’s worth mentioning that i have configured the sshd on the server only to allow keys, no passphrases… maybe this causes the ssh connection node to be confused ?
next to that, clearly the status indication and error messages could use some useability improvements
@adaptagis, not sure how an ‘include subfolder’ option could sabotage the ssh-key pairs…
the error that is shown to you is provided by the library we’re using. I just searched for that error and found out that this library expects a private key in OpenSSH key file format. Depending on how you created that key it could be that it is in the wrong format. To convert the key into the OpenSSH key file format you can follow the steps described here: https://stackoverflow.com/questions/15332120/jsch-invalid-private-key
–> make sure you set the permissions to chmod 600 !!
convert the private key to an ssh .pub
ssh-keygen -y -f ./.ssh/knime.private.key > ./.ssh/knime.private.key.pub
copy the knime.static.key.pub to the server
ssh-copy-id -i ./.ssh/knime.private.key droplet@104.123.45.678
–> don’t be fooled, ssh-copy-id appends the “.pub” suffix to the input file argument given
that’s it
after that, point the “SSH connection” node to the knime.private.key and you’re off…
thanks for your effort and summarizing the necessary steps!
I’ll have a look at the node description and add the information that the key has to be in an OpenSSH key file format.