title: How to write a very basic SFTP client
body: <p>My hosting company provides FTP, SFTP and shell access (no support for FTPS). I need to connect to it and upload our database. We want to switch from unsecured FTP to SFTP. </p>
  
  <p>I've worked with an FTP library and we've been able to upload via FTP but I can't find an SFTP library and it looks like I might have to write one myself. I have the source for the FTP library. Is there any change I need to make to connect via SFTP? </p>
  
  <p>My project is built in Flash and ActionScript3 and it may run in the browser so it may be possible to use a JavaScript library if available. </p>