I want to block users from changing directories when they log in via scponly's shell. How can I do that? I need to be able to provide users with their own upload directory that only they can see and read/write. They should not be allowed to execute any code, ie, change directories or the like.
chrooted scponly might be what you're looking for.
if you use debian/ubuntu - when installing scponly you will be asked which version you want.
also read here.