I have created two users on our ftp server. They will use sftp to connect this server. But I do not want them to give direct ssh access. If I give /bin/false shell, sftp will not work. If I give /bin/nologin, it fails with below messages
[root@vopdc076 ~]# sftp trdeo@bd01.xxx.com
Connecting to bd01.xxx.com...
trdeo@bd01.xxx.com's password:
Received message too long 1416128883
[root@vopdc076 ~]#