Using 'ForceCommand' Option

Gert Doering gert at greenie.muc.de
Thu Feb 18 08:17:19 AEDT 2016


Hi,

On Wed, Feb 17, 2016 at 12:59:57PM -0600, Lesley Kimmel wrote:
> I would like to implement an arbitrary script to be executed when logging
> on via SSH. 

I'd just do this in the PAM session handler.

ForceCommand means "run this command *and then exit*", so this is not
what you want.

gert


-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert at net.informatik.tu-muenchen.de


More information about the openssh-unix-dev mailing list