title: delete remote file using ssh when ssh not working
body: <p>on a remote server I have created a file in /etc/profile.d/x.sh with content</p>
  
  <pre><code>#!/bin/bash
  
  exit 1
  </code></pre>
  
  <p>now I am unable to ssh to the remote server. unfortunately ssh was the only way to connect.</p>
  
  <pre><code>ssh root@remoteserver
  Password:
  Last login: Fri Nov 21 18:32:47 2014 from 10.62.95.12
  Connection to remoteserver closed.
  </code></pre>
  
  <p>I have tried </p>
  
  <pre><code>ssh root@10.62.95.130 rm -f /etc/profile.d/x.sh
  Password:
  </code></pre>
  
  <p>but this did not work. Is there any way to delete the file using ssh. Or instruct ssh to continue on error.</p>