i cannot run a command before connect with ssh to remote server using ~/.ssh/config file.
I have tried with options "ProxyCommand" and "LocalCommand" but it doesn't work.
- ProxyCommand: seems it run the command, but after that doesn't ask me the password of ssh connection
- LocalCommand: run the command only if the connection successful
/usr/bin/nc %h %p
/bin/echo hello > /tmp/test && /usr/bin/nc %h %p > /dev/null 2>&1