You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm trying to run shell script when user accessed with tsh ssh closed the terminal.
I'm currently using Teleport v6.0.1 git:v6.0.1-0-g6166fd56e go1.15.5
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi. I'm trying to run shell script when user accessed with
tsh ssh
closed the terminal.I'm currently using Teleport v6.0.1 git:v6.0.1-0-g6166fd56e go1.15.5
Referenced
I've referenced these links:
Script
/etc/pam.d/teleport
/etc/pam-exec.d/teleport_close
Test
Way 1. exit with the 'exit' command on the shell
This just leave "close_session" text to the /path/to/test.log file
Way 2. just close the terminal with the mouse click
But this does not leave any logs.
Way 3. accessed with ssh (not tsh), then closed the terminal with the mouse click
This just leave "close_session" text to the /path/to/test.log file
Goal
I want to handle way2 case
Beta Was this translation helpful? Give feedback.
All reactions