Sometimes it's very useful to connect to an agent/runner and check logs or roam around the system. Github permits connecting to their runners via SSH with the usage of specialized actions, but Azure DevOps does not have this functionality. Thanks to Twingate, we now have a workaround.
Full tutorial - here
-
Follow this tutorial to create a Twingate account and install twingate client on your local machine.
-
Copy the code from azure-pipelines.yml and change the strings accordingly. <CONNECTOR_SERVICE_COMMAND> - Bash command you obtain from Twingate once you create a connector. It is used to install the connector on the Azure DevOps agent. <PUBLIC_KEY> - Your public SSH key <TIMEOUT_INTERVAL> - Timeout interval to close pipeline execution
-
Run your pipeline, get the agent IP address from the output and ssh to it.
Thanks to Twingate for the awesome tool they created. If you want to learn more about its capabilities, check Viktor Farcic's review video.