i have a ssh jumphost. On the sshjumphost i wanna execute
always a python script if user want use my jumphost to jump.
client1 -------- jumphost ---------targethost
Client use following command:
ssh -o ProxyCommand="ssh -W %h:%p test\\\\[email protected]" user@targethost
I used the server sshd_config and set
ForceCommand scriptname
But my script dont triggered if a client use the command above.
But if i use following command:
ssh [email protected]
then my script was triggered.
What can i do to trigger always a script if a user wanna use my jumphost?
Best regards mobios