I'm trying to establish a FTPS connection using Apache FTPSClient. It works fine from the command line.
The target site has my public key - I don't need a password or passphrase.
java.security.KeyStoreException: key is not encoded as EncryptedPrivateKeyInfo
I think I may be going about this the wrong way, but I can't seem to find the right path. Any help would be appreciated.
David Tong wrote:Never mind, JSch worked and was simpler.
JSch talks the secure shell protocol (SSH) using 'scp' or 'sftp' but FTPS talks FTP over SSL. These are two very different protocols. Presumably when you say "It works fine from the command line." you mean that you were talking to an 'ssh' server such as 'openssh' using an 'scp' or ''sftp' client.
subject: Importing RSA public key into a keystone?