PDA

View Full Version : print info on login via ssh



monkeyking
June 19th, 2009, 11:01 PM
Hi people

How do I run a specific program whenever a specific user logs in via ssh.

I know its not directly programming related,
but its my program.

thanks in advance

dwhitney67
June 19th, 2009, 11:19 PM
You could slap something (i.e. a command) in that user's ~/.bash_profile.

monkeyking
June 19th, 2009, 11:26 PM
Thanks dwhitney

it works