LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   After login attempts, can a script be run from ssh daemon ? (https://www.linuxquestions.org/questions/linux-software-2/after-login-attempts-can-a-script-be-run-from-ssh-daemon-610458/)

frenchn00b 01-01-2008 06:57 PM

After login attempts, can a script be run from ssh daemon ?
 
Hi, Just an idea, lazy of changing/looking in the code of ssh, can a script be started at every ssh sucessfull or not attempts ?
thx

vkmgeek 01-02-2008 07:29 PM

write in /etc/bashrc

stormpunk 01-02-2008 11:41 PM

/etc/bashrc would be good for successful logins but http://www.linuxquestions.org/questi...tempts-340366/ is a sticky and tells several ways to deal with failed logins.

basic plot: use some file tailing method to read log file and do what you need to do


All times are GMT -5. The time now is 12:10 PM.