This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ssh to vagrant hosts can be slow due to Ruby overhead of running | |
# 'vagrant ssh' and ssh overhead to setup the network connection. | |
# | |
# This wrapper uses that slow setup routine once to create a reusable ssh | |
# ControlMaster socket. Subsequent connections invoke the ssh executable | |
# directly (bypassing Ruby) and connect over the ControlMaster socket | |
# (bypassing the connection setup) so are almost instantaneous. | |
# |