

Also, every instance using the serial console must include at least one password-based user. Then, you must 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, you must grant access to it at the account level. The serial console connects to your instance without requiring a working network connection. The serial console helps you troubleshoot boot issues, network configuration, and SSH configuration issues. If you’ve enabled EC2 Serial Console for Linux, then you can use it to troubleshoot supported Nitro-based instance types. There are four methods for verifying permissions and directories on the instance: Resolution You're using the incorrect user name for your AMI when connecting to your EC2 instance For more information, see the Dependency failed errors section in Why is my EC2 Linux instance not booting and going into emergency mode? The operating system couldn't mount ( /etc/fstab) home directories.For more information, see I made changes to my EC2 instance's sshd_config file and now I can't access my instance using SSH.

SSH server settings in /etc/ssh/sshd_config were changed.For more information, see the Verify that the private key is correct section in Why am I receiving "imported-openssh-key" or "Putty Fatal Error" errors when connecting to my Amazon Elastic Compute Cloud (Amazon EC2) Linux instance? You're using the incorrect private key file when connecting to your EC2 instance.There are permissions issues on the instance or you're missing a directory.The user trying to access the instance was deleted from the server or the account was locked.The usual user names are ec2-user, ubuntu, centos, root, or admin. You're using the incorrect user name for your AMI when connecting to your EC2 instance.The following are some common reasons you might receive this error: There are multiple reasons why an SSH server (sshd) refuses a private SSH key.
