Coming from other clouds, just got started with using Oracle cloud. Apologies for the super noob question.
So, I created a compute instance in my company's non production compartment, with the following specs.
Instance details
Virtual cloud network: VCN_SG1_SPG_DB
Image: Canonical-Ubuntu-22.04-2024.02.18-0
Public IP address: 58.108.296.13
Primary VNIC
Public IPv4 address: 58.108.296.13
Subnet: VCN_SG1_SPG_DB
Private DNS record: Enable
Hostname: data-science-development
Username: ubuntu
I also got an ssh.key
file that reads like
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA
dW50MEs/vLXs2a5DvmIEMuyiA1E+3+wk1f6hEs+y/yPMHA6qFGe/
-----END RSA PRIVATE KEY-----
So, this is what I am trying from my Macbook for login
chmod 400 ssh.key
ssh -i ssh.key ubuntu@58.108.296.13
I am getting a timeout error, as obviously my macbook cannot reach the ip address.
So, what else should I check to ensure smooth login? I cannot see a way to open a terminal to this instance from the OCI web interface itself. But its state shows running. Is there a way to ensure the key I am trying is in the authorized_keys
file or really recognised by this instance? Or could it have something to do with the subnet or VCN? Any help will be sincerely appreciated.