Before actually running the ypinit command to create the slave servers, first make sure that the svc:/network/nis/domain service has been configured.
Make sure that the network is working properly before you configure an NIS slave server. In particular, make sure that you can use the sshd command to send files from the master NIS server to NIS slaves.