hwy419
(hwy419)
September 11, 2020, 5:34am
1
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!
Stewart1
(Stewart)
September 11, 2020, 5:46am
2
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.
dicko
(dicko)
September 11, 2020, 12:19pm
3
Probably fixable by adding /usr/sbin to your path
echo $PATH
which fwconsole
billsimon
(Bill Simon)
September 11, 2020, 2:25pm
4
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).
2 Likes
hwy419
(hwy419)
September 11, 2020, 8:52pm
5
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.
system
(system)
Closed
October 12, 2020, 8:52pm
6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.