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 keys for RHEL user not present #19

Closed
cloin opened this issue Jun 4, 2021 · 1 comment
Closed

SSH keys for RHEL user not present #19

cloin opened this issue Jun 4, 2021 · 1 comment

Comments

@cloin
Copy link
Contributor

cloin commented Jun 4, 2021

Instruqt distributes ssh keys to all nodes in environment for root only. Need to fix images to distribute keys for a non-root user (e.g. rhel user)

(venv) [rhel@ansible tests]$ ansible rhel -i hosts -m ping
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Aug 18
2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]. This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
node1 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: rhel@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).",
    "unreachable": true
}
(venv) [rhel@ansible tests]$ ssh root@node1
root@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
(venv) [rhel@ansible tests]$ ssh node1
rhel@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
@cloin
Copy link
Contributor Author

cloin commented Jun 7, 2021

RHEL user password set and pass auth enabled in image.

@cloin cloin closed this as completed Jun 7, 2021
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

1 participant