Re: way to set shell used for remote commands?

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Wed, Jan 21, 2015 at 17:29:00 +0000, Alex Bligh wrote:
> 
> On 21 Jan 2015, at 15:36, Jason Vas Dias <jason.vas.dias@xxxxxxxxx> wrote:
> 
> > Please can OpenSSH provide some way of specifying which shell to use to
> > execute commands on a host.
> 
> Using dash as an example of another shell:
> 
>    ssh 127.0.0.1 -t dash
> 
> and
> 
>    ssh 127.0.0.1 dash -c env
> 
> appear to do the expected for me.
> 

Two years ago, I opened a bug to add support for a ForceShell option
to sshd that would provide the ability to override users shells. There
doesn't seem to have been much interest in it, and I never received any
feedback.

I haven't updated the patch since the original submission, and it may
need some further work, but it might be worth a try. I don't recall it
it overrides the user's shell during forced password changes, so that
may be one area that needs to be addressed.

-- 
Iain Morgan
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux