Skip to content

Run pre-connect hooks before ssh commands#1510

Merged
djmb merged 1 commit intomainfrom
pre-connect-exec-commands
Apr 18, 2025
Merged

Run pre-connect hooks before ssh commands#1510
djmb merged 1 commit intomainfrom
pre-connect-exec-commands

Conversation

@djmb
Copy link
Collaborator

@djmb djmb commented Apr 18, 2025

We hook into the SSHKit on method to run the pre-connect hook before the first SSH command. This doesn't work for interactive exec commands where ssh is called directly.

Fixes: #1157

We hook into the SSHKit `on` method to run the pre-connect hook before
the first SSH command. This doesn't work for interactive exec commands
where ssh is called directly.

Fixes: #1157
@djmb djmb merged commit cd9d01b into main Apr 18, 2025
10 checks passed
@djmb djmb deleted the pre-connect-exec-commands branch April 18, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interactive server exec doesn't run hooks

1 participant