This question already has an answer here:
- Allow SFTP but disallow SSH? 8 answers
I've been doing my research and found some clues as to where I should be looking, but just can't quite get it perfect.
I'm trying to create a new user, and allow them to have access to SFTP for file management, but I do not want them to be able to SSH and access console. Nor am I trying to su the account.
I've tried changing their bash to (/bin/nologin), but then they cannot login to SFTP, I've tried locking their account as well but that didn't work either.
I'm on Centos 6, and I'm just using the built in sftp service.
Similar to probably how a small server host would set it up, allowing access to a specific directory, but not console. Just trying to project my butt if one of my server staff tries to railroad me.