Re: allow only sftp?

From: Jeff D (blue@ev01.net)
Date: 04/12/03

  • Next message: Jason Grove: "Re: allow only sftp?"
    Date: Fri, 11 Apr 2003 15:50:04 -0700
    From: Jeff D <blue@ev01.net>
    To: Rex Binns <rex@kc.binns.org>
    
    

    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?
    >
    >thanks
    >
    >
    >
    Hi,
        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
            read-only.

    Jeff


  • Next message: Jason Grove: "Re: allow only sftp?"