search for: ssh_shell

Displaying 1 result from an estimated 1 matches for "ssh_shell".

2015 Jan 21
4
way to set shell used for remote commands?
...so. A simple patch would be to session.c, @ line 1746 : /* * Get the shell from the password data. An empty shell field is * legal, and means /bin/sh. */ shell = (pw->pw_shell[0] == 0) ? _PATH_BSHELL : pw->pw_shell; One could do something like: char *sh; if ( (sh=getenv("SSH_SHELL") )!= NULL ) shell = sh; else shell = (pw->pw_shell[0] == 0) ? _PATH_BSHELL : pw->pw_shell; Or provide some configuration option - this would probably have to be per-server . Is there any hope of getting the ability to specify which shell to run remote commands...