Skip to content

Instantly share code, notes, and snippets.

@nickrw
nickrw / sshv
Created January 23, 2013 02:12
#!/bin/bash
# A quick and dirty script for quickly SSHing to local vagrant virtual machines.
# It assumes default Vagrant port forwards. Your first VM is at 2222, your second
# is at 2200. Anything more than that and you're in trouble.
# Why? Because:
#
# $ ( time vagrant ssh -c echo ) 2>&1 | grep real
# real 0m4.870s