You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "daniftodi (via GitHub)" <gi...@apache.org> on 2025/02/08 13:22:14 UTC
[PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
daniftodi opened a new pull request, #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478
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.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478#issuecomment-2671095821
> > 👍
> > 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 ;)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on code in PR #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478#discussion_r2013993838
##########
source/installguide/configuration.rst:
##########
@@ -493,7 +493,7 @@ Basic Zone Configuration
Before adding the host in CloudStack do the following,
- - Copy the SSH public key from /var/cloudstack/management/.ssh/id_rsa.pub on the management server
+ - Copy the SSH public key from /var/lib/cloudstack/management/.ssh/id_rsa.pub on the management server
Review Comment:
I think @weizhouapache 's suggestion is valid. We could add a remark that "the actual user may differ depending on your configuration".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478#issuecomment-2645798531
:+1:
the home of `cloud` user is different on ubuntu and RHEL, so the correct location should be `~cloud/.ssh/id_rsa.pub`
@daniftodi
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "daniftodi (via GitHub)" <gi...@apache.org>.
daniftodi commented on code in PR #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478#discussion_r1998541265
##########
source/installguide/configuration.rst:
##########
@@ -493,7 +493,7 @@ Basic Zone Configuration
Before adding the host in CloudStack do the following,
- - Copy the SSH public key from /var/cloudstack/management/.ssh/id_rsa.pub on the management server
+ - Copy the SSH public key from /var/lib/cloudstack/management/.ssh/id_rsa.pub on the management server
Review Comment:
This is not a valid, `~cloud/.ssh/id_rsa.pub` - doesn't exist. Who should create it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on code in PR #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478#discussion_r1998585373
##########
source/installguide/configuration.rst:
##########
@@ -493,7 +493,7 @@ Basic Zone Configuration
Before adding the host in CloudStack do the following,
- - Copy the SSH public key from /var/cloudstack/management/.ssh/id_rsa.pub on the management server
+ - Copy the SSH public key from /var/lib/cloudstack/management/.ssh/id_rsa.pub on the management server
Review Comment:
the `cloud` user is created by cloudstack.
I tested on two management servers.
the `cloud` users have different home directories on ubuntu and rocky. This is why I suggested.
- ubuntu 24.04
```
# ls -l ~cloud/.ssh/id_rsa.pub
-rw-r--r-- 1 cloud cloud 594 Mar 14 16:19 /var/lib/cloudstack/management/.ssh/id_rsa.pub
```
- rocky8
```
# ls -l ~cloud/.ssh/id_rsa.pub
-rw-r--r--. 1 cloud cloud 202 Mar 14 10:14 /var/cloudstack/management/.ssh/id_rsa.pub
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "daniftodi (via GitHub)" <gi...@apache.org>.
daniftodi commented on PR #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478#issuecomment-2645920978
> 👍
>
> 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?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on code in PR #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478#discussion_r1998131147
##########
source/installguide/configuration.rst:
##########
@@ -493,7 +493,7 @@ Basic Zone Configuration
Before adding the host in CloudStack do the following,
- - Copy the SSH public key from /var/cloudstack/management/.ssh/id_rsa.pub on the management server
+ - Copy the SSH public key from /var/lib/cloudstack/management/.ssh/id_rsa.pub on the management server
Review Comment:
```suggestion
- Copy the SSH public key from ~cloud/.ssh/id_rsa.pub on the management server
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache closed pull request #478: `id_rsa.pub` location when adding host using SSH Auth
URL: https://github.com/apache/cloudstack-documentation/pull/478
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] `id_rsa.pub` location when adding host using SSH Auth [cloudstack-documentation]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #478:
URL: https://github.com/apache/cloudstack-documentation/pull/478#issuecomment-3414626738
closed due to #581
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org