Access to AWS EC2 instance by local Linux machine
Guide for Linux Ubuntu This method uses IAM credentials and does not require opening port 22 on your EC2 instance. This is the safest method to connect to an EC2 instance from a local machine. AWS CLI Install AWS CLI on your machine: Check: session-manager-plugin Download the .deb package of session-manager-plugin. x86_64 Install it Verify
