title: How to force login to a non-default shell on the remote machine?
body: <p>You may find the similar question <a href="https://serverfault.com/questions/162018/force-ssh-to-use-a-specific-shell">here</a>. But I think my case is different.</p>
  
  <p>I have a program running in remote machine on <code>ash</code> shell which will not allow me to access the <code>shell</code> itself i.e, it runs an instance whenever I open a <code>ssh</code> session and I cannot execute normal commands like <code>cd</code> <code>mkdir</code> etc. It could be listed in the <code>/etc/profile</code> and so it is executing always when I open a session.</p>
  
  <p>I am aware that there are some other <code>shells</code> like <code>sh</code>.</p>
  
  <p>So I want here to log in to <code>sh</code> and not <code>ash</code> so that I can suppress that <code>process</code> blocking me.</p>
  
  <p>If I execute </p>
  
  <pre><code>  ssh root@192.168.x.x /bin/sh "some command"
  </code></pre>
  
  <p>I think it actually enters into the default shell <code>ash</code> and on it, it executes <code>bin/sh "some command"</code> and quits.</p>
  
  <p>Am I correct here?</p>
  
  <p>How do I do this work??</p>