Re:Ask HN: Why is there no native SSH hook to run a local co...
by dylan604 on Tuesday September 09, 2025 @07:36PM
(#45191025)
without making it an alias, would this shell script somewhere else be usable by the other applications from the question? if you can provide the specific path rather than the system looking for whatever ssh was installed, then maybe, but i don't know those specifics which makes using the shell script have question marks.
Re:Ask HN: Why is there no native SSH hook to run a local co...
by waqasx on Tuesday September 09, 2025 @07:46PM
(#45191119)
You can write a script and put it in PATH
Re:Ask HN: Why is there no native SSH hook to run a local co...
by ranger_danger on Tuesday September 09, 2025 @07:50PM
(#45191170)
You could either put the script somewhere earlier within the PATH than wherever the normal ssh binary is, or manually export a new PATH with some other custom folder that comes first, which you could use to override anything, e.g. export PATH=/root/bin:$PATH
Or you could make your own 'ssh' shell script somewhere else on the filesystem that handles it for you.