I am using SSHFTPClient for connection following is my code for connection
client authentication=>Public private keys
sshFtpClient.setAuthentication(clientCertificateFile,user, password);
sshFtpClient.connect();
exception=>Connection to the requested FTP server could not be established. Could not authenticate SSH client: PARTIAL