1

I'm relatively new to Linux, and whilst installing a number of different applications on my Ubuntu server instance, somebody helpfully suggested I use 'sudo su' to speed things up a little. All good. I then disconnected (or let my connection time-out) when attempting to connect a little later on, I get 'Server refused our key' and am unable to log-in.

I've managed to mount the volume against another instance - so can thankfully access the filesystem - and my question is this:

Is it possible for me to fix this while I've got access to the volume? If so could anyone point me in the direction of any useful info on how I might go about this?

Thanks

Mark.

Mark Kelly
  • 111
  • 1

2 Answers2

1

The command sudo su just switches to root. That command alone can't have any effect on you logging in. It must have been caused by another command or one of the applications you have installed.

John Wheal
  • 456
  • 5
  • 17
  • Ah okay - so it's not due to the same environment variables problem this user is / has had? [link] (http://serverfault.com/questions/107187/sudo-su-username-while-keeping-ssh-key-forwarding) – Mark Kelly Aug 03 '12 at 09:12
0

If you haven't installed your own ssh key on the instance, you need to connect using the ssh key that Amazon installs into each instance by default (and provided to you).

Example:

ssh -i GSG_Keypair.pem ec2-user@198.51.100.243
Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
  • Sure - and that's how I've been connecting to the instance, right up to the point where it suddenly stopped letting me. Just to clarify - I'm also using the same key on another instance, and that still works fine. – Mark Kelly Aug 03 '12 at 12:08