I'm lost in Linux, can somebody help me with an iptables
command to allow only the IP Address 5.5.5.5 to access port 22?
I've got that port restricted to the same IP in the EC2 security group, but I need to block it on the instance itself as well.
Aren't you being a little excessive? Your instances on EC2 are nicely isolated from other traffic by their own private firewall on the virtual network device you are "plugged into" upstream.
Try:
This adds a rule which specifically allows access from that IP, then a rule which specifically denies it from everyone else.
This has also been covered in very similar posts: Iptables: How to allow only one ip through specific port?
Allow traffic on one port from one IP address with iptables