The Greek coastguard says it has rescued 18 people, all of whom were Sudanese nationals.