I'm trying to set up a jailed SFTP user account on my own local machine to test an application with libcurl. I used this guide to help me figure out how to set up a jailed SFTP user: http://www.thegeekstuff.com/2012/03/chroot-sftp-setup/
The guide does work, but I'd like to set up public-key authentication to log in to the SFTP user's account instead of using a password. I have some basic understanding of generating and authorizing private and public keys from this guide: http://www.cyberciti.biz/tips/ssh-public-key-based-authentication-how-to.html
However, trying to add an authorized_keys2 directory in the sftp user's home directory doesn't seem to work. Any tips or advice would be helpful.