[
https://issues.apache.org/jira/browse/CLOUDSTACK-5822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14964279#comment-14964279
]
Kirk Kosinski commented on CLOUDSTACK-5822:
-------------------------------------------
Hi, I think the issue in the description is resolved in the current
cloud-set-guest-sshkey.in script. The old script from CloudStack 4.3 had:
cat $authorized|grep -v "$publickey" > $authorized
Which will actually erase the contents of the $authorized file. The script from
CloudStack 4.5 has:
cat $authorized|grep -v "$publickey"|tee $authorized > /dev/null
Which does seem to correctly update the file instead of erasing it.
> ssh keypairs are removed after rebooting vm
> -------------------------------------------
>
> Key: CLOUDSTACK-5822
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5822
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.3.0
> Reporter: Wei Zhou
> Assignee: Wei Zhou
>
> For a ssh keypair-enabled vm, the keys in /root/.ssh/authorized_keys will be
> reset after rebooting the vm. Only the keypair specified in cloudstack will
> be added. We should keep the keypairs added by users.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)