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

id_rsa.pub location when adding host using SSH Auth #478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daniftodi
Copy link

@daniftodi daniftodi commented Feb 8, 2025

Currently the path of the id_rsa.pub file that should be added to the /root/.ssh/authorized_hosts isn't correct for CloudStack 4.20.0, see: https://docs.cloudstack.apache.org/en/4.20.0.0/installguide/configuration.html

Based on commit: apache/cloudstack@8952cd5

the key is located at: /var/lib/cloudstack/management/.ssh/id_rsa.pub

Verified on CloudStack 4.20.0 during the initial setup for CloudStack.

Screenshot from 2025-02-08 15-21-31


📚 Documentation preview 📚: https://cloudstack-documentation--478.org.readthedocs.build/en/478/

@weizhouapache
Copy link
Member

👍

the home of cloud user is different on ubuntu and RHEL, so the correct location should be ~cloud/.ssh/id_rsa.pub
@daniftodi

@daniftodi
Copy link
Author

👍

the home of cloud user is different on ubuntu and RHEL, so the correct location should be ~cloud/.ssh/id_rsa.pub @daniftodi

Thank you for approving this, I can't merge, probably will be merged by someone with write access.

Isn't the username a configuration passed on the Username field during the configuration of a host?

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

Successfully merging this pull request may close these issues.

2 participants