title: Difficulty in connecting to SFTP server with Python and Flask?
body: <p>I am trying to connect to an SFTP server but I am getting an error:</p>
  
  <p><code>pysftp.exceptions.ConnectionException: ('NAMEOFSERVER@sftp.NAMEOFHOST.gov', 22)</code></p>
  
  <p>I have no clue why this is happening, here is the portion of the code that is causing problems:</p>
  
  <pre><code>myHostname = "NAMEOFHOST"
  myUsername = "" #there is no username
  myPassword = "PASSWORD"
  
  import pysftp
  
  cnopts = pysftp.CnOpts()
  
  cnopts.hostkeys = None
  with pysftp.Connection(host=myHostname, username=myUsername, password=myPassword,cnopts=cnopts) as sftp:
      print ("Connection succesfully stablished ... ")
  </code></pre>
  
  <p>Any help is appreciated, thank you!</p>