How to Create a SSH Service Connection for Instance via Bastion

Gember Barroso 20 Reputation points
2025-04-29T08:27:21.0066667+00:00

Hi,

Is it possible to create an SSH service connection on Azure DevOps for an Oracle Cloud Infrastructure Instance via Bastion?

The instance doesn't have a public IPv4 address, so I have to access its SSH through the bastion.

Azure DevOps
0 comments No comments
{count} votes

Accepted answer
  1. SniperHead05 80 Reputation points
    2025-04-29T13:42:24.1933333+00:00

    Yes, it is possible to create an SSH service connection on Azure DevOps for an Oracle Cloud Infrastructure (OCI) instance via Azure Bastion. Here’s a general outline of the steps involved:

    Set Up Azure Bastion: Ensure Azure Bastion is configured to securely connect to your OCI instance. Azure Bastion allows you to connect to your virtual machines using SSH without exposing them to the public internet 1.

    Create SSH Service Connection in Azure DevOps:

    Navigate to your Azure DevOps project.

    Go to Project settings > Service connections.

    Select New service connection and choose SSH.

    Enter the required details such as the hostname or IP address of your OCI instance, port number, username, and authentication method (private key and passphrase) 2.

    Configure SSH Task in Azure Pipelines:

    Use the SSH@0 task in your pipeline to run commands or scripts on the remote OCI instance.

    Specify the SSH service connection created earlier in the sshEndpoint parameter 2.

    Oracle Bastion Configuration: Ensure your OCI instance is accessible via SSH through Oracle Bastion. Oracle Bastion allows authorized users to connect from specific IP addresses to target resources using SSH sessions 3.

    By following these steps, you can securely manage and automate tasks on your OCI instance using Azure DevOps and Azure Bastion.

    included the links to the sites that overview what you need to do 😊


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.