Re: allow only sftp?
From: Jeff D (email@example.com)
Date: Fri, 11 Apr 2003 15:50:04 -0700 From: Jeff D <firstname.lastname@example.org> To: Rex Binns <email@example.com>
Rex Binns wrote:
>I need to allow a user only sftp access, but deny them ssh access?
>Is this possible, and if so, how do I do it?
If you are using key authentication you can do this:
Add no-pty to the beginning of their authorized_keys file.
That will stop them from getting a pty, but this only works with key
authentication. IF you do this, make sure that the key file is