will sftp work with /bin/false

helo

helo I have create user for the group and entry for the user in /etc/passwd file is liek this

bhavin:x:2014:109:test:/home/pds_RBAC:/bin/false

I have keep here /bin/false

now i m accesing user through sftp

ow when i access that user using sftp from the another linux pc
for e.g
sftp bhavin@148.147.165.46

passwd:- ******

but here it shows me connection closed

why it happen

why i m not able to access this using sftp

what to do so that sftp work with /bin/false

Amit

/bin/false is related to shell / terminal allocation, it has nothing to do with sftp. If you need sftp, you have to allow shell access. If you need very restricted shell, look in Google for jail shell.