Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH Bad permissions #207

Open
MSevey opened this issue Jan 21, 2022 · 0 comments
Open

SSH Bad permissions #207

MSevey opened this issue Jan 21, 2022 · 0 comments
Assignees

Comments

@MSevey
Copy link
Contributor

MSevey commented Jan 21, 2022

Describe the bug

When redsolver was running the setup-initial script he was getting the following error:

PLAY [Setup basic security by root] *******************************************************

TASK [Gather ansible facts on demand] *****************************************************
fatal: [red1]: UNREACHABLE! => {
    "changed": false,
    "unreachable": true
}

MSG:

Failed to connect to the host via ssh: Bad owner or permissions on /root/.ssh/config

NO MORE HOSTS LEFT ************************************************************************

PLAY RECAP ********************************************************************************
red1                       : ok=5    changed=2    unreachable=1    failed=0    skipped=1    rescued=0    ignored=0   

ERROR: Error 2

They have a YubiKey that signs their ssh.

They were able to resolve the issue by removing the following line from the ansible-executor.sh docker run command.

    -v ~/.ssh:/root/.ssh:ro \

To Reproduce

Expected behavior

Screenshots

Version Information (please complete the following information):

Additional context

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

No branches or pull requests

2 participants