Page 1 of 1
SSH as Root
Posted: Thu Nov 17, 2022 10:53 am
by mister_monitor
I have Nagios XI installed on Debian version 9. I know it goes against best practices but when I ssh into my XI machine I’d like to be able to log in as root. Does anybody know what I need to do to make that possible?
Re: SSH as Root
Posted: Thu Nov 17, 2022 11:52 am
by gormank
sudo grep -i root /etc/ssh/sshd_config | grep -v ^#
PermitRootLogin no
Re: SSH as Root
Posted: Wed Nov 08, 2023 11:59 am
by kvang
Hi mister_monitor,
I think gormank intended to say
Also be sure to restart your ssh service.
If you have any other questions feel free to reach out!
Thanks!
Re: SSH as Root
Posted: Tue Dec 05, 2023 10:49 am
by ssunga
To restart:
systemctl restart sshd
Re: SSH as Root
Posted: Fri Dec 08, 2023 2:24 pm
by kvang
I will be locking this topic! If you have further questions please start a new thread.
Thanks!