Can we launch a shell script automatically upon ssh login?

Greetings all,

I'll just like to know if it is possible to launch a shell script automatically upon a user's successful login into ssh from a remote host, without adding a command parameter to the ssh command...

ie. after keying in ssh username@host (not ssh username@host "command") and upon successful verification, ssh launches us into a shell script straightaway without bringing us to a command prompt.

Thanks a bunch :slight_smile:

You could do that. Just change the user's shell from /bin/sh (or whatever it is now) to the full path of the script.