

Change into the netkey directory and type

make netkey 

Move the executable into a directory (i.e. /etc) and edit /etc/inetd.conf
as follows:

telnet	stream	tcp	nowait	root	/etc/netkey     netkey /etc/telnetd telnetd
ftp	stream	tcp	nowait	root	/etc/netkey	netkey /etc/ftpd ftpd -l
shell	stream	tcp	nowait	root	/etc/netkey	netkey /etc/rshd rshd
login	stream	tcp	nowait	root	/etc/netkey	netkey /etc/rlogind rlogind
smtp	stream	tcp	nowait	root	/usr/bin/smtpd	smtpd

Only the services called via netkey will be protected (i.e. smtp is *not*
protected in this example).

Copy the example file netkey.conf to /etc and change it depending your needs 
 
Send signal to inetd and let it re-read it's configuration file.

$ kill -1 INETDPID

That's all.

