SSH as Root

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mister_monitor
Posts: 6
Joined: Thu Nov 17, 2022 10:03 am

SSH as Root

Post 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?
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: SSH as Root

Post by gormank »

sudo grep -i root /etc/ssh/sshd_config | grep -v ^#
PermitRootLogin no
kvang
Posts: 35
Joined: Wed Aug 23, 2023 11:28 am

Re: SSH as Root

Post by kvang »

Hi mister_monitor,

I think gormank intended to say

Code: Select all

PermitRootLogin yes
Also be sure to restart your ssh service.

If you have any other questions feel free to reach out! :)

Thanks!
ssunga
Posts: 72
Joined: Wed Aug 09, 2023 10:38 am

Re: SSH as Root

Post by ssunga »

To restart:

systemctl restart sshd
kvang
Posts: 35
Joined: Wed Aug 23, 2023 11:28 am

Re: SSH as Root

Post by kvang »

I will be locking this topic! If you have further questions please start a new thread.

Thanks!
Locked