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:

To access your Haiku system remotely, you will need to know its network address. Haiku's default hostname is shredder. If shredder doesn't resolve, you can simply launch the Network preference applet to find your system's network address. You can change the hostname by editing /system/settings/network/hostname.

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.

  1. Edit /system/settings/ssh/sshd_config, uncomment the following option, and set the value to yes:
    PermitRootLogin yes
  2. 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
~>