1 Answer
- Newest
- Most votes
- Most comments
1
Port 22 is the designated port for SSH. You should focus more on who is allowed to connect via that port. Example: 0.0.0.0/0 will allow everyone to exploit that connect, so be mindful on which IP you use. Moreover, use IAM policies and the likes to enforce it: https://aws.amazon.com/blogs/security/use-ec2-instance-connect-to-provide-secure-ssh-access-to-ec2-instances-with-private-ip-addresses/
Relevant content
- asked 4 years ago
- asked 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago