Skip to content

AshrafZaryouh/Access-and-Manage-a-Linux-Compute-Instance-using-Oracle-Cloud-Infrastructure-Part-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Approach 1: Connect via SSH to the Compute Instance Public IP Address using a SSH Private Key with the macOS Terminal

In this approach, we will connect to a Linux instance using SSH and the public IP address that is provided by OCI to connect directly to the instance using the macOS terminal.

Access-Manage-Linux-Instance-200
  • Run the following commands.

1 - Use the command line interface (CLI) to navigate to the folder where the public and private keys are stored.

cd Downloads
cd MyFreeInstanceKeys
ls -l

2 - Connect to the instance using the SSH command where you specify the private key. 3 - Restrict permissions of the private key and make sure the access is restricted, before it can be used.

chmod 600 ssh-key-2024-01-31.key

4 - Connect to the instance using the SSH command where you specify the private key.

ssh -i ssh-key-2024-01-31.key [email protected]

5 - Run the following command to verify the IP address.

ip a

6 - Verify the IP address.

Access-Manage-Linux-Instance-201

About

Approach 1: Connect via SSH to the Compute Instance Public IP Address using a SSH Private Key with the macOS Terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published