2

I have an AWS EC2 instance. I was trying lo lock down (chroot) an SFTP account to its home directory using this guide. And I've managed to lock myself out of the server as I can no longer SSH in. I don't think telnet is enable as I tried

telnet <ip address>

and received the message

telnet: Unable to connect to remote host: Connection timed out

So, given this, does anyone have any idea how else I may be able to connect to the server to re-enable SSH?

hellsgate
  • 189
  • 1
  • 14

1 Answers1

1

There doesn't look to be anything in that guide that would cause you to become locked out if you followed it correctly. Perhaps sshd isn't running and so won't accept new connections, have you tried rebooting the instance ? If that doesn't work then you're probably out of luck as there is no recovery console for EC2 instances.

user9517
  • 115,471
  • 20
  • 215
  • 297