Restricted SFTP access to server for one user

Ashley Moran work at ashleymoran.me.uk
Tue Mar 28 09:30:53 UTC 2006


Thanks to an unfortunate turn of events, we are hosting a website for a client 
that should have been hosted externally.  Now he wants FTP access to a 
directory on the server.  I don't want to install an FTP program, and we 
don't use password authentication for SSH, so I'm going to tell him to create 
a key pair and send us his public key.

I can remove his login shell, but how do I restrict him to only view his home 
directory over SFTP?

Thanks
Ashley


More information about the freebsd-questions mailing list