* Note: although these steps will also work for the pre-packaged OVA collector, in that case the changes will be reverted back to default whenever an OS update is pushed out with our bi-weekly collector upgrade.
The virtual appliance versions of the Auvik collector run on Ubuntu 22.04. By default, Ubuntu 22.04 doesn’t allow for remote access. If you need to access the collector for monitoring or maintenance, you can enable remote access by following a few simple steps.
The steps below take you through adding a new user to your virtual collector.
- From the virtual machine window for the collector, click onto the console.
- Select Option
6
and entery
to enter the bash shell from the collector menu. - Execute
adduser nanook
, replacingnanook
with your desired username. - When prompted, enter the password for the new user. Confirm the new password by retyping it when asked.
- You now have the option of adding specific user information, such as full name, room number, work phone, home phone, and other. We recommend entering a full name at a minimum. Otherwise, press ENTER to accept the defaults.
- Click
y
to confirm the information is correct. Clickn
to update the user information.
Now that the new user is created, you need to enable SSH password authentication so you can use the password you just created to log in:
- Use a text editor to update the
sshd_config
file. Executenano /etc/ssh/sshd_config
. - In the
sshd_config
file, locatePasswordAuthentication no
. Update this toPasswordAuthentication yes
. - Exit configuration mode and save your changes.
- Execute
service sshd restart
forsshd
to read the new configuration.
Now let’s run a quick test to confirm you’re able to access the collector. From a window external to the virtual machine, connect using SSH:
- Mac users: Open a terminal window and execute
SSH UBUNTUUSER@IPADDRESS<
Accept the SSH key. When prompted, enter the user’s password.
- Windows users: Start PuTTY. In the host name field, enter the IP address for the virtual machine. Ensure the port is 22 and SSH is selected. Click Open. When prompted, enter the username and password.
Now that you’ve confirmed the new user is able to log into the collector, you can optionally provide the user with superuser access. Providing superuser access is entirely optional but if you’d like to do it, here’s how:
- From the virtual machine window for the collector, click onto the console.
- Select Option
6
and entery
to enter the bash shell from the collector menu. - From the console shell, execute
usermod -aG sudo nanook
, replacingnanook
with the appropriate username.