With your VitalPBX installation done, there are some things you can do for ease of configuration.
1. Remote access using the root user.
You cannot remotely access the server using the root user by default. This can be changed by modifying the “sshd_config” file. First, log in as root directly on the terminal. Then, edit the following file using Nano.
root@debian~:# nano /etc/ssh/sshd_config
Change the line.
#PermitRootLogin prohibit-password
With.
#PermitRootLogIn yes
Save the document and exit.
Optionally, if you want to keep the root user from remotely accessing the server, you can add a Debian user to the “sudoers group.” Enter the following command.
root@debian:~# usermod -aG sudo username
2. Change to a Static IP address.
By default, your system will pull an IP address using DHCP. It is recommended that your server use a static IP address instead. To change it, we will modify the interfaces file. Run the following command.
oot@debian:~# nano /etc/network/interfaces
Change this block of text.
#The primary network interface
allow-hotplug eth0
iface eth0 inet dchp
To this.
#The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
Finally, enable the interface and reboot your system.
root@debian:~# ifup eth0
root@debian:~# reboot