-
-
Notifications
You must be signed in to change notification settings - Fork 289
AuthorizedKeysCommand fails on Ubuntu 20.04 #157
Comments
Well, typing this out was helpful for me to think. I located a I have no idea how they're hooking into sshd to achieve this. @michaelwittig what's the best approach here? I'm thinking:
|
From the README:
So yes, 20.04 is not tested and likely is not going to work as expected yet. |
@michaelwittig yeah I get that, I've tested it to be working well in 18.04 (we've been using this on 18.04 for the past 2 years) and 20.04 works after removing the Would you want to expand support for newer Ubuntu distros? Seeing that you expanded support for Amazon Linux 2 to the 2018-10-31 variant in #142, I made the assumption that you would be interested in expanding Ubuntu support, but if I am wrong, feel free to close this. Thanks! |
Yeah, sure. An update to support Ubuntu 20.04 is appreciated. And you already pointed to the ticket that explains the root cause I guess :) |
re: "I have no idea how they're hooking into sshd to achieve this." Because why on earth would systemd put all service configs in the same place? One might think that This adds a commandline override to only use ect-instance-connect for authing ssh sessions, Hence uninstalling eic works.... this also works:
I imagine checking for this and either asking the user to remove them or offering to do it for them would resolve the issue. |
|
Hi @zxlin,
It is happening because package
So, your sshd settings were overwritten |
Metadata:
On Ubuntu 20.04,
AuthorizedKeysCommand
fails, the following is from theauth.log
outputAuthorizedKeysCommand /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 activeAuthorizedKeysCommand
option):My
/opt/authorized_keys_command.sh
is the correct one supplied by this packageThe string
ec2-instance-connect
oreic
does not appear anywhere in my/etc/ssh/sshd_config
and I've triple checked reloading ssh serverAny idea why the "EC2 Instance Connect" script is being called here?
The text was updated successfully, but these errors were encountered: