sftp and shell access

pete wright nomadlogic at gmail.com
Thu Dec 16 15:20:19 PST 2004


On Tue, 14 Dec 2004 10:45:58 -0800, Doug Hardie <bc979 at lafn.org> wrote:
> 
> On Dec 14, 2004, at 02:11, Josh Paetzel wrote:
> 
> > I am looking for a way to give a user an sftp account without giving
> > them a shell.  So far I've tried setting their shell
> > to /sbin/nologin, but when they try to log in via sftp it gives them
> > a "message to long" error.
> >
> > Any pointers would be appreciated...I've tried the FAQ, handbook and
> > google so far.
> 
> sftp uses a ssh connection to tunnel to ftp.  The connection is
> actually made to your ssh port.  There is also ftps which is ftp with
> ssh imbedded in it (like https).  With that the connection is actually
> made to fhe ftp server port.  ftps is available in the ports
> (BSDftpd-ssl).  Since it doesn't use ssh you can set the user to not
> have login capability.

not to nit pick but doesn't https and ftps encrypt data via SSL not ssh.

-pete


-- 
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group


More information about the freebsd-questions mailing list