Connecting to a Managed SSH Session

Describes how to connect to a managed SSH session.

Before you begin, you must create a Managed SSH session to the target instance .

  • You must have the private key file of the SSH key pair that you used to create the session.
  • The IP address of the machine must be in the CIDR block allowlist of the bastion that hosts the session.
  • The IP address of the bastion must be permitted to access the target resource. See Allowing Network Access From the Bastion.

Connect to a Compute Instance using a Managed SSH Session

  1. On the Bastions list page, select the bastion that contains the managed SSH session that you want to work with.
  2. On the details page, select Sessions, and locate the session that you want to use to connect to the intended target resource.
  3. In the Actions menu (Actions Menu) for the session, select View SSH command.
  4. To copy the command, next to SSH command, select Copy, and then select Close.
  5. Use a text editor to replace <privateKey> with the path to the private key of the SSH key pair that you provided when you created the session.
  6. Use a command line to issue the customized SSH command and connect to the bastion session.

    If your private key was created with a passphrase, you are prompted to enter it.

If you run into any problems, see Troubleshooting Bastion.