Just getting round to trying this now and I can certainly see a lot of value in this.
On a Trellis + Bedrock set up, I can get staging and prod aliases working fine but I'm having trouble with development.
Fairly new to Trellis but this gives me:
Error: Cannot connect over SSH using provided configuration.
And if I manually try:
Permission denied (publickey).
Maybe I'm totally missing something or maybe the Trellis setup has changed since this post?
OK, got it figured out. I wasn't sure as the post referenced Trellis and Vagrant separately, so I tried the Vagrant part of the post, running the following in the Trellis directory:
$ vagrant ssh-config --host example.dev >> ~/.ssh/config
This then let the SSH connection work. Probably my bad for not realising this needed to be done first.