It seems that you are not connecting to an SFTP server.
Please make sure your server is configured to use SFTP protocol. The common mistake is that the server is configured to use FTP or FTP/SSL protocols.
More about differences between FTP and SFTP is discussed at https://www.rebex.net/kb/secure-ftp/
If your server is using FTP, please use Rebex FTP library.