title: Error while connecting to sftp using shell script
body: <p>I am getting following error while trying to connect to a sftp server:-</p>
  
  <blockquote>
    <p>ncftpput: cannot open
    <a href="http://mydomain.com" rel="nofollow">http://mydomain.com</a>:
    unknown host.</p>
  </blockquote>
  
  <p>Code which I am using is as following:-</p>
  
  <blockquote>
    <blockquote>
      <p>FTPU="username" # ftp login name</p>
      
      <p>FTPP="password" # ftp password</p>
      
      <p>FTPS="http://mydomain.com"#
      remote ftp server </p>
    </blockquote>
    
    <p>FTPF="/home" # remote ftp server
    directory for $FTPU> &amp; $FTPP</p>
    
    <blockquote>
      <p>LOCALD="/localpath" </p>
    </blockquote>
    
    <p>ncftpput -m -u $FTPU -p $FTPP $FTPS
    $FTPF $LOCALD</p>
  </blockquote>
  
  <p>I am currently running this script on fedora 10...</p>
  
  <p>thanks.....</p>