Enabling Password Authentication

If you want to use SCP-based or SFTP-based features (for example, SCP-based backup or restore) on the server instance that is created using the AMIs from AWS Marketplace, you must enable password authentication on that instance.

Procedure

  1. By using the default user, log on to the server instance.
  2. Run the following commands to set up the password and SSH access:
    1. sudo su
    2. passwd <username>
    3. vi /etc/ssh/sshd_config
      In this file, uncomment the line: PasswordAuthentication yes
  3. Restart the sshd.
    For Red Hat based instances, use the command:
    service sshd restart