newbie14 0 Posting Pro

Dear All,
I have now better understanding of what chroot is about. I have read few link as below.
http://v2.robbyt.com/2008/howto/chrooted-sftp-with-openssh-5/
http://joedonner2001.wordpress.com/red-hat-el3/sftp-server-within-a-chroot-jail/
My problem now is do I need to upgrade the openssh first in order to control acces to my server? Secondly there are few different methods confuse which is the right one and I also read about pam what is that then? Thank you.