My Oracle Support Banner

OCI Compute - How to Use 'runcommand' to Test Secure Shell (SSH) Listener (Doc ID 2969449.1)

Last updated on SEPTEMBER 19, 2023

Applies to:

OCI Compute - Version N/A to N/A [Release 1.0]
Linux x86-64 on Oracle Public Cloud

Goal

The purpose of the document is to show how "runcommand" can be used to remotely configure, manage, and troubleshoot compute instances by running scripts within the instance using the run command feature.

For example, the run command feature can help you automate tasks such as configuring secondary Virtual Network Interface Cards (VNICs), joining instances to an identity provider, troubleshooting SSH connectivity, or responding to cross-region disaster recovery scenarios.

You can run commands on an instance even when the instance does not have SSH access or open inbound ports.

Here is the scenario to show how to use "runcommand" to know if ssh port 22 is listening on a Linux Virtual Machine or not.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.