September 11, 2020, 5:34am
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!
September 11, 2020, 5:46am
I have no idea what happened but:
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.
September 11, 2020, 12:19pm
Probably fixable by adding /usr/sbin to your path
September 11, 2020, 2:25pm
I think you logged in to the wrong machine after rebooting.
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).
September 11, 2020, 8:52pm
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.
October 12, 2020, 8:52pm
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.