title: WinScp: Connection has been unexpectedly closed. server sent command exit status 127
body: <p>My Server is Ubuntu 14.04.5 LTS and I am able to connect SSH in Putty, but not able to connect via WinSCP.</p>
  
  <p>When I try to connect via WinSCP it gives below error: </p>
  
  <p>Connection has been unexpectedly closed. server sent command exit status 127</p>
  
  <p><a href="https://i.stack.imgur.com/lhMGV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lhMGV.png" alt="enter image description here"></a></p>