Distro update on AWS

Hey guys,

I ran a ‘yum update’ on my FreePBX 15 AWS EC2 instance. Everything updated without error. Rebooted.

Upon the next attempt to login via SSH I get:

“Please login as the user “ubuntu” rather than the user “root”.”

When I do so, fwconsole command is no longer available:

Command ‘fwconsole’ not found, did you mean:

command ‘fgconsole’ from deb kbd

Try: sudo apt install <deb name>

Machine was configured with AWS keypair and password login for root was disabled. When I try to “su root” it’s now asking for password.

What went wrong? How can I remedy?

Fortunately I took a snapshot and also ran a backup to EFS just about 6 hours ago so I should be fine

Thanks in advance!

I have no idea what happened but:

Does sudo su work?

While it’s probably a good idea to prohibit root login using only a password, it should be possible to configure ssh to allow root login with an RSA key pair. For added security, you could require a password as well.

Probably fixable by adding /usr/sbin to your path

echo $PATH
which fwconsole

I think you logged in to the wrong machine after rebooting. :slight_smile:

The terms “ubuntu” and “apt install …” have nothing at all to do with FreePBX Distro, which is SangomaOS, a CentOS derivative, using “yum” package manager (as you know).

2 Likes

sudo -s

switches me to root and I can run fwconsole from there without issue. So wierd. I have been running Linux in AWS for YEARS but I am no expert.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.