Page 1 of 1

Allow certain users to SSH to my nagios xi instance

Posted: Wed Jul 10, 2019 1:52 pm
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.

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

Posted: Wed Jul 10, 2019 2:18 pm
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?

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

Posted: Thu Jul 11, 2019 11:56 am
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!

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

Posted: Thu Jul 11, 2019 12:12 pm
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!

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

Posted: Thu Jul 11, 2019 12:16 pm
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