This project show that how to create new connection, how to change port and how to upload file to sftp server.
If you are getting "Must specify HostKeyCallback" error,
-> Try to define "HostKeyCallback" function in clientConfig give your secure trustedKey to this,
In this example also solve this error.