Network services
The basic installation of Haiku contains several standard system network services including an FTP, Telnet, and SSH server.
Setting your user password
A good first step is to set the password for your user account (default name is 'user'), in order to secure your system before opening it to the world.
~> passwd new password: repeat new password:
ftpd - FTP server daemon
Haiku can easily be made to listen for incoming FTP connections to serve its files.DISCLAIMER: ftpd does not support SFTP or FTPS so network traffic is unencrypted.
To start the FTP server open the Network preferences, select **`FTP server`** from its list of services and click **`Enable`**.
telnetd - Telnet server daemon
Haiku can easily be made to listen for incoming telnet connections.DISCLAIMER: telnet traffic is unencrypted.
To start the Telnet server open the Network preferences, select **`Telnet server`** from its list of services and click **`Enable`**.
sshd - Secure shell daemon
SSH is a network protocol that allows for data to be exchanged using a secure channel between two networked devices. The most common use is shell access.The SSH server daemon is set to start automatically on a default Haiku install, but it does not allow connections until configured.
- Edit /system/settings/ssh/sshd_config, uncomment the following option, and set the value to yes:
PermitRootLogin yes
- Restart Haiku or kill the existing sshd process.
We should now be able to verify that the daemon is indeed running:
ps | grep sshd | grep -v grep /bin/sshd 237 1 0 0
In the example above, sshd has the process id of 237 and is running. We can now connect to Haiku with the username of ‘user’ and the password which you set at the beginning of this article:
alex@leenux-desktop:~$ ssh user@192.168.1.200 user@192.168.1.200's password: Welcome to the Haiku shell. ~> uname -a Haiku shredder 1 hrev55181+52 Jul 27 2021 08:11: x86_64 x86_64 Haiku ~>