Ensure your Azure Machine Learning compute instances do not use the standard port (22) for SSH access. This change promotes port obfuscation as an additional layer of defense against non-targeted attacks. While changing the standard SSH port number is a basic security measure, it does not completely secure your instances from port scanning and network attacks. For full protection, you should consider disabling public SSH access.
Using the standard SSH port (22) for Azure Machine Learning compute instances increases the risk of automated attacks and unauthorized access attempts, as it is a well-known default port frequently targeted by malicious actors. Changing the port number helps reduce exposure to such attacks and enhances the overall security posture of the environment.
Audit
To determine if your Machine Learning compute instances are using the standard port (22) for SSH access, perform the following operations:
Checking the SSH port number configured for your ML compute instances using the Azure Console (Azure Portal) is not currently supported.Remediation / Resolution
To ensure that your Azure Machine Learning compute instances are not using the standard port (22) for SSH access, perform the following operations:
References
- Azure Official Documentation
- What is an Azure Machine Learning compute instance?
- Manage an Azure Machine Learning compute instance
- Azure Command Line Interface (CLI) Documentation
- az account list
- az account set
- az ml workspace list
- az ml compute list
- az ml compute show
- az ml compute create
- az ml compute delete