opscode/knife-ec2 — pull request #112 by aabes (2013-05-19 11:25:12+00:00)
Title: add the subcommand:

ec2 sshconfig

it produces aliases for all instances suitable for usage in a ssh config file to alias public dns name to instance name.

Use it like this:
bin/knife ec2 sshconfig > ~/.ssh/config