title: Create users accounts on SFTP server by code
body: <p>I have the following requirement: in an existing webapplication we have a user management. In this you should be able to say for user xyz he should have access to an SFTP-Server lets say with a checkbox option: Allow access to SFTP. </p>
  
  <p>If the option gets selected it should do the following thing:</p>
  
  <p>-> Create a login on the SFTP-Server User: xyz Passwort xzy<br>
  -> Create a folder for user /root/xyz with read and write permission (isolated from others)</p>
  
  <p>Anyone has done something similar or an idea how to archive this? What I found so far is .NET FTP authentication which works with IIS (but seems IIS supports only FTP/S not SFTP).</p>
  
  <p>The SFTP is not set up by now, so could be any (prefered on another server)</p>
  
  <p>Would appreciate any help :)</p>