SSH
SSH¶ Polycrate can provide a shortcut to ssh into one of the nodes managed by a workspace if a valid Ansible Inventory exists.
To interpret the inventory, Polycrate starts an intermediate container which submits the necessary config for a successful ssh connection to Polycrate on exit.
Running polycrate ssh –block block-b host-1 will initiate an SSH session with host-1 from the inventory file of block-b.
Note
If you have a block called inventory that has an artifact called inventory.yml, you can omit the –block inventory part of the command as Polycrate assumes these filenames and block names as defaults: polycrate ssh host-1