cloudstack-documentation icon indicating copy to clipboard operation
cloudstack-documentation copied to clipboard

`id_rsa.pub` location when adding host using SSH Auth

Open daniftodi opened this issue 11 months ago • 3 comments

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: https://github.com/apache/cloudstack/commit/8952cd59559c09e3a1d33842697d508983af33aa

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/

daniftodi avatar Feb 08 '25 13:02 daniftodi

:+1:

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

weizhouapache avatar Feb 08 '25 15:02 weizhouapache

👍

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?

daniftodi avatar Feb 08 '25 19:02 daniftodi

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

does this mean we need to adjust the text still more @weizhouapache ?

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?

good point @daniftodi , but I have never seen an installation using anything but the default. could be a good test ;)

DaanHoogland avatar Feb 20 '25 10:02 DaanHoogland

closed due to #581

weizhouapache avatar Oct 17 '25 09:10 weizhouapache