Score:0

alternative ways to access a Ubuntu server

tr flag

I had spun up a Ubuntu EC2 (the 20.* Ubuntu AMI) on AWS, in a private subnet and a specific VPC. To SSH into I was using a Bastion host (kept in a public subnet) Had installed nodeJS and hosted a React application on this Ubuntu (which I maintain). All was working fine. And the web application is still working on port 5000.

But I suspect during some experimenting I goofed up the .ssh/authorized_keys file of this instance.

so even if the web application is running on port 3000 I cannot SSH into it and modify the application. As it seems this instance is rejecting the public-key of the Bastion host.

on my SSH client I get

[email protected]: Permission denied (publickey).

Is there any way to fix this.

thanks

in flag
Nope. Kill the EC2 instance and start over.
user535733 avatar
cn flag
There is no secret unsecured backdoor. That would be a very bad thing.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.