- Newest
- Most votes
- Most comments
Hello.
For Debian, "admin" is the default username.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managing-users.html
For a Debian AMI, the username is admin.
It seems you're encountering issues connecting to your AWS EC2 instance using FileZilla. Let's go through a few troubleshooting steps to resolve this:
-
Username: The correct username depends on the Amazon Machine Image (AMI) you used to launch your instance. For Amazon Linux 2 or Amazon Linux AMI, the username is indeed "ec2-user". However, for Ubuntu AMIs, it's typically "ubuntu". Make sure you're using the correct username for your specific AMI.
-
Key file format: FileZilla requires the key to be in PPK format. You mentioned you're using a .pem or .ppk file. If you're using a .pem file, you need to convert it to .ppk format using PuTTYgen:
- Open PuTTYgen
- Click on "Load" and select your .pem key file
- Click on "Save private key" to save it in .ppk format
-
Key file permissions: Ensure that your private key file has the correct permissions. On Windows, right-click the file, go to Properties, then Security, and make sure only your user account has access to it.
-
Security Group: Verify that your EC2 instance's security group allows inbound SSH traffic (port 22) from your IP address.
-
Instance state: Confirm that your EC2 instance is in the "running" state and has passed all status checks.
-
Connection type: In FileZilla, try changing the "Logon type" to "Interactive" instead of "Key file" and see if that helps.
-
Host: Using the Public IPv4 DNS is correct, but you can also try the Public IPv4 Address if the DNS doesn't work.
If you've checked all these points and are still encountering issues, you may want to try connecting via SSH using the command line to see if you get more detailed error messages. This can help identify if the problem is with FileZilla configuration or with the EC2 instance itself.
Remember, the "Server refused our key" error usually indicates an issue with the key file or permissions. Double-check that you're using the correct key pair associated with this EC2 instance and that it's properly converted to .ppk format.
Sources
Troubleshoot issues connecting to your Amazon EC2 Linux instance - Amazon Elastic Compute Cloud
Community | How to connect EC2 instance with windows OS ?
Ok I understood, in my case I've installed Debian OS what must type in the User field?
Relevant content
- asked 10 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 11 days ago