Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Authentication error with SFTP and private key

  1. #1

    Default Authentication error with SFTP and private key

    Hello,

    I'm attempting to the the SFTP Job entry with a private key. I created the key with:

    ssh-keygen -e -f ~/.ssh/id_rsa.pub > ~/.ssh/id_rsa_pub.pem
    I can login from the command line with:

    sftp -oIdentityFile=~/.ssh/id_rsa.pem ftp
    But in Kettle (4.1) I get this error dialog:

    Error trying to connect to ${ftp.server} .Exception :
    com.jcraft.jsch.JSchException: Auth fail
    Auth fail
    If instead I supply username and password the connection is fine. Our system administrators strongly prefer we use keys however. We added my public key to the hosts knownhosts and even tried turning off strict host key checking but that didn't have any effect.

    Any idea what's going on? Anything else I can do to debug this?

    Thanks!
    David

  2. #2

    Default

    Solved, okay, the conversion to PEM key is unnecessary (and probably wrong). I guess the documentation just meant not to use a Putty key or something. Could be more clear....

  3. #3
    Join Date
    Jun 2011
    Posts
    1

    Default

    Ok.

    1)Use the puttyGen
    2) Run puttygen and click generate
    3) Run your mouse round the blank part for a while.
    4) Enter a keyphrase (and repeat)
    5) Click save public key and save it <path>\publickey
    6) Click save private key and save it <path>\privatekey (extension gets added automatically, this is no good for spoon, but good for putty)
    7) Click Conversions->Export OpenSSH key and save as <path>\sshkey.pem
    8) In the main window is you key for pasting into OpenSSH authorized_keys file. Copy this in its entirety and past it into your ubuntu machine in /home/<user>/.ssh/authorized_keys file.
    9) Ok, you can close putty key generator.
    10) Utilize the .gem in the tool.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.