Non-shell accounts and scp/sftp

Damien Miller djm at mindrot.org
Mon Dec 11 16:41:15 AEDT 2023


On Fri, 8 Dec 2023, Darren Tucker wrote:

> On Fri, 8 Dec 2023 at 07:39, Philip Prindeville
> <philipp_subx at redfish-solutions.com> wrote:
> [...]
> > Problem is that if their default shell isn't sh, ash, dash, bash, zsh, etc. then things break.
> > Is there a workaround to allow scp/sftp to continue to work even for non-shell accounts?
> 
> sftp should work regardless of the user's shell since it is invoked as
> a ssh subsystem which is independent of the shell channel.

I'm pretty sure sshd executes subsystems using the user's configured
shell.

You should be able to use "Subsystem sftp internal-sftp" to skip the
shell though.

-d


More information about the openssh-unix-dev mailing list