I created ec2 instance of ubuntu platform in AWS. I set its network/security configurations as followings:
disabled public IP address
chose default VPC given
for inbound rules:
- port range: 22
- protocol: TCP
- source: 0.0.0.0/0
outbound rules:
- port range: all
- port protocol: all
- destination: 0.0.0.0/0
I tried to access the server via ssh client (e.g. PuTTY) using ppk file (ssh public key authentication) hitting private IP address but it failed to connect.
However if I enable public IP address, I can connect to it just fine.
My question is, with private IP address available only, can I access the server remotely via ssh client tool?