Unable to ssh into community edition Neo4J ec2 instance

I spun up a new instance through the AWS marketplace and created key pair.

I ran sudo chmod 400 keypair.pem

When i run ssh -i keypair.pem ec2-user@ec2-public-dns.com

I get the following message:
Connection closed by 54.xxx.xxx.43 port 22

I have tried a few times now with 6 different key pairs. I keep getting the same error.

My IAM access and secret are in the ~/.aws/credentials file and I am able to ssh into other running instances. Just not the neo4j instance.

Any help would be greatly appreciated.

Thanks

Hi, I believe the neo4j instance is on ubuntu OS. Can try the user name as "ubuntu" and see.

1 Like

Thank you Vinoth! That worked. That was dumb on my part.