I was trying to make a connection to a Free Public SFTP Server that I found here using pysftp.
I tried:
import pysftp
cnopts = pysftp.CnOpts()
cnopts.hostkeys = None
sftp = pysftp.Connection('demo.wftpserver.com:2222', username='demo-user', password='demo-user', cnopts=cnopts)
sftp.close()
However it yields:
ConnectionException: ('demo.wftpserver.com:2222', 22)
and gaierror: [Errno -2] Name or service not known
Is this a workaround to this issue?
Please Advise.