It really is a shame we don't borrow more from Chef::Knife::Ssh, as this looks a lot like #configure_gateway.