How to control which command is executed with "plain ssh" from remote machine?

John Olsson M john.m.olsson at
Mon Dec 17 22:13:19 EST 2012


Is it possible to override in OpenSSH so that the shell specified in the /etc/passwd (or what comes from the LDAP server) is not executed at login?

We have naïvely tried to specify this with subsystem but found out that by default the ssh client does not specify any subsystem. So how to override something that is unset from the client?


John Olsson
Ericsson AB
BSC/BSS System Management
Tel: +46 (0)10 7114 666
Mobile: +46 (0)730 43 53 44

More information about the openssh-unix-dev mailing list