How to setup "drush @mysite.env ssh" command?
Pantheon does not support ssh access to your server. Write your own Drush command, place it in the drush folder at your repository root, and call it with drush @mysite.env mycommand.