title: why is the `tcgetattr` error seen when ssh is used for dumping the backup file on another server?
body: <p>I want to dump a tables backup on another server and I am using ssh for doing it.
  when I run the below command, it gives an error but dump file is copied to destination.</p>
  
  <pre><code>mysqldump -u username -ppassword dbname tablename | ssh -t -t servers_username@domain_name 'cat &gt; /tmp/bckp.sql';
  </code></pre>
  
  <blockquote>
    <p>tcgetattr: Invalid argument</p>
  </blockquote>
  
  <p>If I press <kbd>CTRL</kbd>+<kbd>c</kbd> then it appends error message with <code>Killed by signal 2.</code></p>
  
  <p>Why is this error?</p>