Detect SSH port in emed.