Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

AuthorizedKeysCommand fails on Ubuntu 20.04Β #157

@zxlin

Description

@zxlin

Metadata:

  • Operating System: AWS Ubuntu 20.04
  • Installation method: install.sh
  • AWS CLI Version: aws-cli/1.17.14 Python/3.8.2 Linux/5.4.0-1015-aws botocore/1.14.14

On Ubuntu 20.04, AuthorizedKeysCommand fails, the following is from the auth.log output
AuthorizedKeysCommand /usr/share/ec2-instance-connect/eic_run_authorized_keys username SHA256:ecphulTPPp7xHnSCVkuQH2fcXemYKjT8xFftheRDz+s failed, status 22

The exact same install method works on 18.04. I'm not 100% sure what's the issue.

It looks to be related to #142

My /etc/ssh/sshd_config shows on the bottom (and is the only active AuthorizedKeysCommand option):

AuthorizedKeysCommand /opt/authorized_keys_command.sh
AuthorizedKeysCommandUser nobody

My /opt/authorized_keys_command.sh is the correct one supplied by this package

The string ec2-instance-connect or eic does not appear anywhere in my /etc/ssh/sshd_config and I've triple checked reloading ssh server

Any idea why the "EC2 Instance Connect" script is being called here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions