Network services

The basic installation of Haiku contains several standard system network utilities including SSH and Telnet

Setting your user password

A good first step is to set the password for your user account, 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 - an FTP server daemon

Haiku can easily be made to listen for incoming FTP connections to serve its files.

Start ftpd at boot

Haiku will automatically start its FTP server daemon at boot if you remove the comment hashes (#) from the service ftp section of /boot/system/settings/network/services.

Start ftpd manually

To start the FTP server daemon manually, simply execute ftpd.

sshd - the 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. Starting the SSH server daemon in Haiku is easy:
  1. Add the SSH server user:
    useradd sshd
  2. Edit /system/settings/ssh/sshd_config and add the following option:
    PermitRootLogin yes
  3. Start the SSH server daemon:
    /boot/system/bin/sshd
After starting sshd, we should now be able to verify that the daemon is indeed running:
ps | grep sshd | grep -v grep
/boot/system/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 r36769 May 8 2010 20:58:31 BePC Haiku ~> gcc -v using priority 5 Reading specs from /packages/gcc-2.95.3_2013_08_15-2/.self/develop/tools/lib/gcc-lib/i586-pc-haiku/2.95.3-haiku-2013_08_15/specs gcc version 2.95.3-haiku-2013_08_15 ~>