Skip to content

3. Connect to the compute instance

Frédéric Descamps edited this page Nov 18, 2025 · 2 revisions

To connect to the deployed compute instance, you need to save the private SSH key that was created during the deployment.

This key is hidden and can be found in the "Job resources" of the Resource Manager's Stack details of the apply job:

Screenshot From 2025-09-08 13-00-37 Screenshot From 2025-09-08 13-01-08 Screenshot From 2025-09-08 13-01-21

Copy the key and paste it into a file on your disk. You need to fix the key by removing the enclosing double quotes and replacing all the '\n' with a real carriage return, using, for example, the command :1,$s/\\n/\r/g on Vi:

Screenshot From 2025-09-08 13-08-22

Then you can change the file permissions to 600.

You can then connect to the compute instance using the key, the opc user and the public IP:

Screenshot From 2025-09-08 13-11-16

You are now connected to the compute instance.

Update

Recently, when deploying a stack, there is a new tab with information on how to connect to the deployed compute instance:

Screenshot From 2025-11-18 16-35-02 Screenshot From 2025-11-18 16-36-23

You can select the content of the key and paste it into a file as previously, and we need to replace the blank spaces like this:

Screenshot From 2025-11-18 16-52-02

In Vim, I use the command:

:s/\v^(\S+ ){3}\zs.*\ze( \S+){3}$/\=substitute(submatch(0), ' ', "\r", 'g')/

You can also check this video:

03_Connect_to_Compute_V1.mp4

Clone this wiki locally