title: Create a file on remote server using ssh
body: <p>I want to create a file on a remote server using ssh but I am not able to do so. I have 3 remote server and I am writing a bash script to create files on each of them.</p>
  
  <p>The command I am using is:</p>
  
  <pre><code>`ssh $1@$2 &gt; /etc/kafka/kafka_2.11-0.9.0.0/config/test.sh &lt;&lt;EOL
  broker.id=$3
  listeners=$4
  num.network.threads=3
  num.io.threads=8
  socket.send.buffer.bytes=102400
  socket.receive.buffer.bytes=102400
  socket.request.max.bytes=104857600
  log.dirs=/tmp/kafka-logs
  num.partitions=1
  num.recovery.threads.per.data.dir=1
  log.retention.hours=168
  log.segment.bytes=1073741824
  log.retention.check.interval.ms=300000
  log.cleaner.enable=false
  zookeeper.connection.timeout.ms=6000
  delete.topic.enable=true
  ssl.client.auth=required
  security.inter.broker.protocol=SSL
  
  EOL`
  </code></pre>
  
  <p>but it does not seem to work.</p>