mitchellh/vagrant — pull request #621 by bitprophet (2012-01-04 20:42:07+00:00)
Title: Allow 'vagrant ssh' to strip most non-port options.

Adds a -p flag to 'vagrant ssh' which strips out username, private key args, allowing the local user's ssh settings to take full effect.

Use case, as explained to @mitchellh on IRC: want default settings unchanged (for things like initial provisioning and being able to easily get into bare boxes) but also want easy way to SSH into post-provision boxes which have my local user on them.

Totally open to changing the flag and/or variable/option names, "port_only" is not the best way to describe this but I couldn't come up with anything better offhand.