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

RPM on Centos 7.4 broken: Ec2 Permission denied #117

Closed
cloudvant opened this issue Jan 31, 2018 · 5 comments
Closed

RPM on Centos 7.4 broken: Ec2 Permission denied #117

cloudvant opened this issue Jan 31, 2018 · 5 comments
Labels

Comments

@cloudvant
Copy link

cloudvant commented Jan 31, 2018

Operating System: Centos 7.4
AWS CLI Version: aws-cli/1.14.30 Python/2.7.5 Linux/3.10.0-693.11.6.el7.x86_64 botocore/1.8.34

SSHD AthorizedKeyCommand does not work, the response is always permission denied.

The key has been uploaded to IAM and I've used ssh-add to add the key to the agent.

What I tried:

  • running under "sudo -su nobody" "/usr/bin/authorized_keys_command.sh user" works. The right key is returned from IAM
  • Tried all the options fro here: https://gist.github.com/sivel/c68f601137ef9063efd7
  • If I copy the pub key in ~/.ssh/authorized_keys works
@michaelwittig
Copy link
Contributor

Hi @vmendoza

  1. Which installation method have you used?
  2. What error do you get? Please copy and paste the message

@cloudvant
Copy link
Author

I used the RPM method to install.

  • It looks like Centos / RHEL 7.4 works differently than other versions
  • I have Cybereason for intrusion protection that might be blocking this but I doubt it.

@michaelwittig
Copy link
Contributor

The RPM only works on Amazon Linux at the moment. This is work in progress and will change soon.

@michaelwittig michaelwittig changed the title Centos 7.4 on Ec2 Permission denied RPM on Centos 7.4 broken: Ec2 Permission denied Jan 31, 2018
@michaelwittig
Copy link
Contributor

duplicate of #115

@michaelwittig
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants