12.10 Enabling Root User Credentials for Source Linux Workloads in AWS

PlateSpin Migrate requires root user credentials for discovery of Linux workloads. To use Migrate discovery instead of the Migrate Agent to inventory source workloads in AWS, you must enable root user access for the workload. In AWS, Amazon Linux AMIs by default enable the ec2user user name and PEM key credentials, and disable the root user name and password credentials.

NOTE:If the Migrate Server resides on premise in the data center, you must have a site-to-site VPN between the AWS account and the data center in order to use Migrate discovery for the inventory.

To enable root user credentials on an AWS source Linux workload:

  1. Use SSH tool (such as Putty) to connect to the source Linux workload in AWS, and log in with the ec2user user name and PEM key credentials.

  2. Run sudo su.

  3. Create a password for the root user by running the passwd command.

  4. In a text editor, edit the /etc/ssh/sshd_config file. Ensure that the directive PasswordAuthentication no is uncommented and set to yes.

    PasswordAuthentication yes
  5. Run the /etc/init.d/sshd reload command, or reboot the workload to apply the changes.

    On Red Hat Enterprise Linux 7.x, use the following command:

                  /bin/systemctl restart sshd.service
                

    Reloading or restarting the SSH daemon might not work on some Linux distributions, In this case, a reboot is required to apply the settings.