title: rsync exits with the message "stdin is not a tty"
body: <p>I want to use rsync to my remote server for which I have SSH access. I use the following command:</p>
  
  <blockquote>
    <p>rsync -e 'ssh -p 22222' -rtz --delete content_dir/ user@example.com:/home/user/public_html</p>
  </blockquote>
  
  <p>After entering the command, it asks for the password for the remote location. When I type it, it exits with the message,</p>
  
  <blockquote>
    <p>stdin: is not a tty</p>
  </blockquote>
  
  <p>How do I supply the password to rsync? The method suggested should also work when I use it in a shell script.</p>