3 # MonkeySphere ssh ProxyCommand hook
4 # Proxy command script to initiate a monkeysphere known_hosts update
5 # before an ssh connection to host is established.
6 # Can be added to ~/.ssh/config as follows:
7 # ProxyCommand monkeysphere-ssh-proxycommand %h %p
12 # update the known_hosts file for the host
13 monkeysphere update-known-hosts "$HOST"
15 # make a netcat connection to host for the ssh connection
16 exec nc "$HOST" "$PORT"