Ask HN: Why is there no native SSH hook to run a local command before connecting

https://news.ycombinator.com/item?id=45162679
by tetris11 • 11 months ago
6 13 11 months ago

The `LocalCommand` parameter only runs a command on the local machine after the connection is established.

Is there no pre-connection hook?

My use case is simply that I do port knocking to expose my ssh port, and want this working automatically at the SSH config level so that I can use it transparently from other utilities (e.g. Ansible inventory, Emacs over TRAMP)

Related Stories

Loading related stories...

Source preview

news.ycombinator.com