Allow certain users to SSH to my nagios xi instance

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
aastaguy
Posts: 34
Joined: Tue Apr 30, 2019 10:29 am

Allow certain users to SSH to my nagios xi instance

Post by aastaguy »

Hi all,

This seems like an easy one and I am missing something, but I have a list of users that have web gui access to my nagios instance. I want some of them to be able to ssh into this instance as well. Currently, everyone that would need ssh access is using AD to auth to the web gui.

I tried adding "AllowUsers user1 user2" and restarting sshd but that didn't seem to do anything.

Any help is greatly appreciated!

Thanks in advance.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Allow certain users to SSH to my nagios xi instance

Post by lmiltchev »

I tried adding "AllowUsers user1 user2" and restarting sshd but that didn't seem to do anything.
Where exactly are you adding this - in the "/etc/ssh/sshd_config"? Do you see the users in the /etc/passwd?

Code: Select all

cat /etc/passwd
Are you trying to log in the SSH Terminal in Nagios XI or you are using putty?
Be sure to check out our Knowledgebase for helpful articles and solutions!
aastaguy
Posts: 34
Joined: Tue Apr 30, 2019 10:29 am

Re: Allow certain users to SSH to my nagios xi instance

Post by aastaguy »

Correct, I added the command in /etc/ssh/sshd_config and I do not see the users in etc/passwd. I am guessing now I need to create the user from the command line? How can I do that using AD?

I am using putty.

Thanks!
aastaguy
Posts: 34
Joined: Tue Apr 30, 2019 10:29 am

Re: Allow certain users to SSH to my nagios xi instance

Post by aastaguy »

Actually, I think I understand where I went wrong. You can close this ticket out. I am not going to integrate this with AD so all I really needed to do was to create the users via cli.

Thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Allow certain users to SSH to my nagios xi instance

Post by lmiltchev »

Adding Linux users via AD is out of scope of Nagios support. Having said that, you could use linux command to add users.

To add a user:

Code: Select all

useradd <username>
Example:

Code: Select all

useradd jsmith
To set a password for this user:

Code: Select all

passwd <username>
Example:

Code: Select all

passwd  jsmith
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked