SSH Server #
The OpenBSD SSH server, OpenSSH, is installed in the base installation. It provides a way to connect to the system in a secure manner and allows a client to execute commands on the system on which the OpenSSH server is running.
Enabling OpenSSH #
During Installation #
During the installation process, the installer asks whether or not to enable the OpenSSH server. If the question is answered in the affirmative, the OpenSSH server will start during the next boot.
Post installation #
To enable the OpenSSH server after installation use the following command.
doas rcctl enable sshd
And then start it.
doas rcctl start sshd
To start the OpenSSH server without enabling it, use the -f flag.
doas rcctl -f start sshd