ContentsPrint

Enabling and disabling SSH on Appliance Virtualization Platform from System Manager CLI

About this task

For security purpose, SSH access to Appliance Virtualization Platform shuts down in the normal operation. You must enable the SSH service on Appliance Virtualization Platform.

You can enable SSH, disable SSH, and check the SSH status on the Appliance Virtualization Platform host.

Before you begin

Start an SSH session.

Procedure

  1. Log in to the System Manager command line interface as root.
  2. Navigate to the $MGMT_HOME/infra/bin/avpSSHUtility location.
  3. Type ./enableDisableSSHOnAVP.sh.

    The system displays the following options:

    • Enable SSH on the Appliance Virtualization Platform host.

    • Disable SSH on the Appliance Virtualization Platform host.

    • Check the SSH status on the Appliance Virtualization Platform host.

  4. To enable SSH, perform the following:
    1. At the prompt, type 1 and press Enter.
    2. Type the IP address of the Appliance Virtualization Platform host.
    3. Type the time in minutes.

      The time is the duration after which the system blocks any new SSH connections. The valid range 10 to 120 minutes.

      The system displays the message and enables SSH on Appliance Virtualization Platform host.

    For example, if you set the time to 50 minutes, after 50 minutes, the system blocks any new SSH connections. If you reenable SSH before completion of 50 minutes, the system adds 50 minutes to the initial 50 minutes to reenable connections.

  5. To disable SSH, perform the following:
    1. At the prompt, type 2 and press Enter.
    2. Type the IP address of the Appliance Virtualization Platform host.

    If SSH is already disabled, the system displays False and the message SSH is already disabled. No operation performed. Exiting.

  6. (Optional) To view the status of SSH, perform the following:
    1. At the prompt, type 3 and press Enter.
    2. Type the IP address of the Appliance Virtualization Platform host.

    If SSH is enabled, the system displays Is SSH enable — false.

    If SSH is disabled, the system displays Is SSH disable — true.