[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14994059#comment-14994059
 ] 

ASF GitHub Bot commented on CLOUDSTACK-5822:
--------------------------------------------

GitHub user ustcweizhou opened a pull request:

    https://github.com/apache/cloudstack/pull/1044

    CLOUDSTACK-5822: keep user-added sshkeys in authorized_keys

    For now, if we add the ssh key inside the vm (not on cloudstack UI), the 
sshkey will be removed if we reset the sshkey on cloudstack UI.
    
    After this commit, the sshkey (added by cloudstack) will end with 
[email protected].
    We will only control the sshkeys with [email protected].
    
    This will be used for multiple sshkey support for vm in the future.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ustcweizhou/cloudstack keep-sshkey

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1044.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1044
    
----
commit 64ef4fa958878ceedfc8009804898f439cdeaf0f
Author: Wei Zhou <[email protected]>
Date:   2015-11-06T13:28:14Z

    CLOUDSTACK-5822: keep user-added sshkeys in authorized_keys

----


> 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)

Reply via email to