You seem to be trying to use FTP to connect to an SFTP server - they are different protocols.
If you want to connect to an SFTP server, use the SFTP examples.
You also appear to be using port 23. For SFTP, this should be 22. For FTP, it should be 21.