Disable SSH on Aria Operations Cloud Proxies
search cancel

Disable SSH on Aria Operations Cloud Proxies

book

Article ID: 399331

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

SSH is automatically enabled and started upon a reboot of the Cloud Proxy

Environment

Aria Operations 8.x.x

Cause

There is no method to enable/disable SSH in the UI.

Resolution

Manual method to disable SSH via the UI on Cloud Proxies:

  1. Log into the Cloud Proxy via SSH or via the console in vSphere.
  2. To disable the auto start and stop the appliance from accepting new SSH connection
    • systemctl disable --now sshd
  3. To shut off dependencies previously needed and to stop them from bypassing the command above. Run the command below as well:
    • sed -i '/sshd\.service/s/^/#/' /usr/lib/systemd/system/cloud-init.service

Note: This will not terminate the SSH session you are currently in to run through the command. But it will immediately reject any further SSH requests, and it will disable the SSH Auto start upon a reboot.

 

Additional Information

You can check the status of the SSH service by running the command:

systemctl status sshd

 

Follow the KB Enabling SSH access in Aria Operations to re-enable the SSH service