SFTPClient usage - how to connect and upload file?

Hello,

Any ideas how I can use SFTPClient to connect to a remote host using IP, Port, username, password, timeout, and passphrase connection parameters?
Upon successful connection, upload a file to the remote host as well.

I have tried doing this without success

Grateful for any assistance in this regard.

Regards,

Jerry