I am using JSch library to create and manage "secure FTP" connection in Scala. Can someone show example using public/private key in configuration of session
?
Right now I'm doing this
session.setConfig("StrictHostKeyChecking", "no")
This exposes the secure connection for unauthorized hits over maintained session which, obviously, I don't want for security reasons.
How can I set private/public key mechanism in my code here.