Disallow logins, but allow ftp?

From: Jeff Shipman - SysProg (jeff@nmt.edu)
Date: 04/19/02

From: Jeff Shipman - SysProg <jeff@nmt.edu>
Date: Fri, 19 Apr 2002 12:21:30 -0600

We have a machine that we would like to disallow
ssh logins, but allow sftp connections. Is there
a way to do this?

One word about our system:

Some people are allowed to login to the machine
(through the console) and they have valid shells.
However, all other users have their shell set
to a shell that simply displays the fact that they
cannot login and logs the user out.

I'm not sure how that will affect how this can
be done. Any help would be greatly appreciated.


Jeff Shipman           E-Mail: jeff@nmt.edu
Systems Programmer     Phone: (505) 835-5748
NMIMT Computer Center  http://www.nmt.edu/~jeff