Can't login via SSH because sshd_config is missing a space - Can't access file editor

peps03

Verified User
Joined
Oct 24, 2013
Messages
191
Location
Amsterdam
Hi.
Strange situation. This instance runs DA on Amazon EC2.
Amazon only allows ssh access as 'centos' user. (System runs centOS)

But, in the sshd_config the 'Allowed users' section looks like this:

AllowUsers root
AllowUsers admin
AllowUsers XX
AllowUsers centosAllowUsers XXX

Instead of this:

AllowUsers root
AllowUsers admin
AllowUsers XX
AllowUsers centos
AllowUsers XXX

SSHissue.pngSSHissue.png

And to be able to edit this file via the DA interface we need the 'root' password, but we only have the Admin password as we access root privileges by 'sudo su'. So we can't edit this file without root pass.

Any ideas? What are our options?
Thanks!
 
Back
Top