Connecting to VMware vSphere Replication Appliance
search cancel

Connecting to VMware vSphere Replication Appliance

book

Article ID: 317502

calendar_today

Updated On:

Products

VMware Live Recovery VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Connecting to vSphere Replication appliance fails.
  • You see the error:

    Server unexpectedly closed network connection

    OR

    Network Error: Connection Refused


Environment

VMware vSphere Replication 8.5.x
VMware vSphere Replication 8.4.x
VMware vSphere Replication 8.3.x
VMware vSphere Replication 8.x

Cause

This issue occurs due to SSH server being disabled by default on the VMware vSphere Replication 6.0 appliance.

Resolution

To resolve this issue, enable SSH for the VMware vSphere Repication appliance.

To enable SSH for the VMware vSphere Replication 6.0 appliance:
  1. Open the virtual machine console and log in as root with the password supplied during installation.
  2. Run this script as root to enable SSH connections on the VMware vSphere Replication appliance:

    /usr/bin/enable-sshd.sh
     
  3. Open the /etc/hosts.allow file using a text editor.
  4. Add the entry:

    sshd : ALL : ALLOW

    Note: This allows all servers to connect to the vSphere Replication appliance through SSH. If your organization has specific security requirements, you can restrict SSH access and also limit SSH access to specified users on specified hosts.

    For more information, see:
     
  5. In the /etc/ssh/sshd_config file modify the these lines to allow the root user to log in through SSH:

    PermitRootLogin yes
    AllowGroups root

     
  6. Run this command to start the SSH service:

    service sshd start

    Note: If the sshd service is already running, you must stop the service using service sshd stop first and then start the service using service sshd start otherwise the login fails.
     
  7. If required, configure SSH to start on reboot:

    chkconfig sshd on


Additional Information

Impact/Risks:
Enabling SSH on your vSphere Replication appliance can represent a security risk and should only be used for troubleshooting purposes.