

Note: Installation of the SSM Agent is required to use this method. This method updates permissions and injects your SSH public key into the authorized_keys file.

Method 2: Use AWS Systems Manager Session Manager to log in to the instance and make corrections Note: If you receive errors when running AWS CLI commands, make sure that you’re using the most recent version of the AWS CLI.

For information on configuring the EC2 Serial Console for Linux, see Configure access to the EC2 Serial Console. If your instance is unreachable and you haven’t configured access to the serial console, follow the instructions in Method 2, 3, or 4. Also, every instance using the serial console must include at least one password-based user. Then, create AWS Identity and Access Management (IAM) policies granting access to your IAM users. You can access the serial console using the Amazon EC2 console or the AWS Command Line Interface (AWS CLI).īefore using the serial console, grant access to it at the account level. The serial console connects to your instance without the need for a working network connection. The serial console helps you troubleshoot boot issues, network configuration, and SSH configuration issues. If you activated EC2 Serial Console for Linux, then you can use it to troubleshoot supported Nitro-based instance types. There are four methods for performing these tasks:
