Have you configured your Operating System to recognise the new Private IP address? One of the steps on the Multiple IP Addresses help section goes over configuring the OS to recognise the new IP address.
I also found this article which goes over configuring multiple network interfaces.
Another thing to review is the interface that the SSH Daemon is bound to. It could be that SSH is only listening to the original Private interface and ignoring the second?
Hi! Good question.
Does the operating system of your instance recognize the secondary IP? If your instance is Amazon Linux, it should do this for you with the ec2-net-utils package. You can also refresh the list of interfaces with a sudo service network restart and then view a list by ip addr li. If your instance is not Amazon Linux, it's slightly more complex and depends on the OS. There should be guides searchable via "configuring additional network interfaces and secondary IPv4 addresses" and also if the interfaces are in the same subnet, search "asymmetric routing rules"
Guide to associate elastic IP with a secondary private IP (IPv4): https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/MultipleIP.html#StepThreeEIP
A friendly security tip: if your instance is publicly accessible, I would recommend scoping down the inbound rules past 0/0 to either your network or more robust security controls to ensure there isn't unauthorized access to your EC2 instance.
Unable to access EC2 Instance over the Public IP Addressasked 3 months ago
EC2 instance doesn't get a new public IP after Elastic IP is disassociatedasked 5 months ago
trying to ssh into an ec2 instanceasked 5 months ago
Can't ssh to EC2 after assigning an additional public ip(elastic ip)asked 9 months ago
Restoring an EC2 Instance - the Public IP is missingAccepted Answerasked 3 months ago
EC2 Public IP Instance Deleted but still responding to pingsasked 3 months ago
Unable to connect to EC2 instance using Public IP address with sshasked 2 years ago
EC2 Instance IP keeps changing despite elastic IPasked 8 months ago
ec2 won't respond after stoppingAccepted Answerasked 2 years ago
EC2 Instance Connect SSH source IPasked 2 months ago