Enable or disable the SSH server
Enable the SSH server
The SSH server is disabled by default in Bitnami OVAs. However, some applications (like GitLab) require SSH access to import code repositories.
To enable the SSH server, execute the commands below at the server console:
IMPORTANT: Before enabling the SSH server, change the default password for security.
Open the SSH configuration file in your preferred text editor:
$ sudo nano /etc/ssh/sshd_config
Change the PermitRootLogin parameter from “no” to “yes”:
PermitRootLogin yes
Restart the SSH service to make the changes take effect:
$ systemctl restart sshd
Disable the SSH server
The SSH server is disabled by default in the Bitnami OVAs. If you have enabled it, you can disable it following the opposite steps:
Open the SSH configuration file in your preferred text editor:
$ sudo nano /etc/ssh/sshd_config
Change the PermitRootLogin parameter from “yes” to “no”:
PermitRootLogin no
Restart the SSH service to make the changes take effect:
$ systemctl restart sshd