Java SFTP client that takes private key as a string
问题 Apache Commons and JSch both require a private key file to set up an SFTP connection. The project I'm working on will be used to connect to multiple SFTP servers. Therefore, we do not hope to deploy multiple private key files, but rather keep these keys as strings in an encrypted config file. Is there an SFTP library that doesn't require a file object for private key? 回答1: The JSch has an addIdentity method overload that takes the key from a buffer: public class JSch { ... public void