title: Cassandra cqlsh Copy Command Failed when invoked from remote server
body: <p>I want to invoke cqlsh COPY command on remote machine. I am trying below</p>
  
  <pre><code>ssh xx.xxx.xxx.xx sh {path_to_cassandra}/bin/cqlsh xx.xxx.xxx.xx 9042 -e "COPY {keyspace}.{table_name} TO '/tmp/file1.csv'"
  </code></pre>
  
  <p>I get the following error.</p>
  
  <blockquote>
    <p>Error : Improper Copy Command</p>
  </blockquote>
  
  <p>Strange thing is when I am running the same command after going to remote server.It is working fine.</p>
  
  <pre><code>ssh xx.xxx.xxx.xx
  
  sh {path_to_cassandra}/bin/cqlsh xx.xxx.xxx.xx 9042 -e "COPY ob_dev_otl.file_status TO '/tmp/file1.csv'"    //Working Fine
  </code></pre>
  
  <p>Please help me with some solution.Really appreciate that</p>