machristie commented on issue #33:
URL: https://github.com/apache/airavata-mft/issues/33#issuecomment-813467954


   It turns out it was a private key format issue. Downloading a file uses the 
SCPReceiver/SCPSender classes and these classes use the JSch library instead of 
the ssh4j library. JSch doesn't support the newer format of OpenSSH private 
keys, see 
https://stackoverflow.com/questions/53134212/invalid-privatekey-when-using-jsch.
   
   I was able to convert my private key to the older format by using this:
   ```
   ssh-keygen -p -f local-ssh-cred -m pem
   ```
   
   The `-m pem` argument tells openssh to write private key in the classic PEM 
format.
   
   This private key is now useable with ssh4j and JSch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to