title: Transfer files from windows machine to remote solaris machine using python script
body: <p>i used following code to establish connection between my local machine and the remote machine :</p>
  
  <pre><code>import os, sys, ftplib
  
  nonpassive=False
  remotesite= '10.88.203.21:22'
  remoteuser='root'
  remotepass='v-peg8!@#'
  localdir= "c:\\.."
  print "connecting"
  
  connection=ftplib.FTP(remotesite)
  print "successfully connected"
  
  connection.login(remoteuser,remotepass)
  
  if nonpassive:
      connection.set_pasv(False)
  </code></pre>
  
  <p>But its giving me following error:
  socket.gaierror: [Errno 11001] getaddrinfo failed..
  can somebody plz help me out with this. </p>