Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AECC179CD for ; Tue, 17 Feb 2015 07:36:55 +0000 (UTC) Received: (qmail 17385 invoked by uid 500); 17 Feb 2015 07:36:49 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 17339 invoked by uid 500); 17 Feb 2015 07:36:49 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 17319 invoked by uid 99); 17 Feb 2015 07:36:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2015 07:36:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nux@li.nux.ro designates 31.193.175.196 as permitted sender) Received: from [31.193.175.196] (HELO mailserver.lastdot.org) (31.193.175.196) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2015 07:36:24 +0000 Received: from localhost (localhost [IPv6:::1]) by mailserver.lastdot.org (Postfix) with ESMTP id 4F16A2CE140; Tue, 17 Feb 2015 07:36:21 +0000 (GMT) Received: from mailserver.lastdot.org ([IPv6:::1]) by localhost (mailserver.lastdot.org [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id MV2L7Dn__K9i; Tue, 17 Feb 2015 07:36:19 +0000 (GMT) Received: from localhost (localhost [IPv6:::1]) by mailserver.lastdot.org (Postfix) with ESMTP id 7101C2CE141; Tue, 17 Feb 2015 07:36:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.9.2 mailserver.lastdot.org 7101C2CE141 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=li.nux.ro; s=C605E3A6-F3C6-11E3-AEB0-DFF9218DCAC4; t=1424158579; bh=5srr3AHI6GHtkZQe9i6TXazWMYvfR/6sqK0xCdrcdeE=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=L4BQIHqv9xTYsH3ImxkYf4LkKGMI+CRRkAxSNqy1QQyO2pSiLDAKGIGiJlOAc4L8R fmxHKzQLVeD26FMNylNRn3u/g4Xw/RhFsXzF8pN0AhTVoQX7GwJq+TVGFUyks4Gix4 M4z37F6wdalYaNvz6L7lI+E1t5Z60BDrPk//fWuU= X-Virus-Scanned: amavisd-new at mailserver.lastdot.org Received: from mailserver.lastdot.org ([IPv6:::1]) by localhost (mailserver.lastdot.org [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id O3Gh1qyGM0K2; Tue, 17 Feb 2015 07:36:19 +0000 (GMT) Received: from mailserver.lastdot.org (mailserver.lastdot.org [31.193.175.196]) by mailserver.lastdot.org (Postfix) with ESMTP id 488D62CE140; Tue, 17 Feb 2015 07:36:19 +0000 (GMT) Date: Tue, 17 Feb 2015 07:36:18 +0000 (GMT) From: Nux! To: fgaudreault@cloudops.com Cc: dev@cloudstack.apache.org Message-ID: <1756635650.67948.1424158578935.JavaMail.zimbra@li.nux.ro> In-Reply-To: <54E28310.6030300@cloudops.com> References: <54E24D2F.5060402@cloudops.com> <860963701.67531.1424124250987.JavaMail.zimbra@li.nux.ro> <2040139588.67658.1424129855628.JavaMail.zimbra@li.nux.ro> <54E28310.6030300@cloudops.com> Subject: Re: Remove/Change SSH Keys from instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.6.0_GA_1153 (ZimbraWebClient - FF31 (Linux)/8.6.0_GA_1153) Thread-Topic: Remove/Change SSH Keys from instance Thread-Index: 2UfVWo8SwdmBVLISFYJM+GZt9fs2Ew== X-Virus-Checked: Checked by ClamAV on apache.org Depending on what you actually want to achieve, you could also register a b= ogus public key and reset to that one, knowing it will never really work. Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro ----- Original Message ----- > From: "Francois Gaudreault" > To: "Nux!" > Cc: dev@cloudstack.apache.org > Sent: Monday, 16 February, 2015 23:53:52 > Subject: Re: Remove/Change SSH Keys from instance > Thanks for looking at it and testing it. >=20 > That answers the key replacement. Looks like there is no way to actually > removing the key from a created VM. I believe the only way left is the > deletion. The updateVM call won't update it either :S >=20 > FG >=20 > On 2015-02-16 6:37 PM, Nux! wrote: >> "resetSSHKeyForVirtualMachine >> Resets the SSH Key for virtual machine. The virtual machine must be in a >> "Stopped" state. [async]" >> >> Apologies for causing you extra stress. We all had a long Monday. >> >> I also never used this function before and here's how I tested. >> >> - empty or move /root/.ssh/authorized_keys on the VM prior to the operat= ion >> - in cloudmonkey >> - stop virtualmachine id=3DXXX >> - reset sshkeyforvirtualmachine keypair=3Dnewkey id=3DXXX >> - start virtualmachine id=3DXXX >> - after it came back I checked /root/.ssh/authorized_keys and .. lo & be= hold, >> the new key was there. >> >> So, answer: yes, that's how to reset the SSH key and no, you can't remov= e it >> that way - it will check if the provided key name actually exists and yo= u must >> provide one. >> >> =E2=98=95 :-) >> >> >> -- >> Sent from the Delta quadrant using Borg technology! >> >> Nux! >> www.nux.ro >> >> ----- Original Message ----- >>> From: "Francois Gaudreault" >>> To: "Nux!" >>> Cc: dev@cloudstack.apache.org >>> Sent: Monday, 16 February, 2015 22:22:34 >>> Subject: Re: Remove/Change SSH Keys from instance >>> Yes what? That API call is not clear at all. >>> >>> I guess a "try it yourself" is what you meant? >>> >>> Thanks for your great help. >>> >>> FG >>> On Feb 16, 2015 5:04 PM, "Nux!" wrote: >>> >>>> yes? >>>> >>>> >>>> https://cloudstack.apache.org/docs/api/apidocs-4.4/user/resetSSHKeyFor= VirtualMachine.html >>>> >>>> -- >>>> Sent from the Delta quadrant using Borg technology! >>>> >>>> Nux! >>>> www.nux.ro >>>> >>>> ----- Original Message ----- >>>>> From: "Francois Gaudreault" >>>>> To: dev@cloudstack.apache.org >>>>> Sent: Monday, 16 February, 2015 20:03:59 >>>>> Subject: Remove/Change SSH Keys from instance >>>>> Hi, >>>>> >>>>> Quick question, using the API, how would a user remove an associated = SSH >>>>> keys to an instance? What call should we use? Seems that you can't ba= sed >>>>> on the existing API calls. >>>>> >>>>> Furthermore, how can we change the SSH Key? Is it the >>>>> resetSSHKeyForVirtualMachine call? >>>>> >>>>> Thanks. >>>>> >>>>> -- >>>>> Francois Gaudreault >>>>> Gestionnaire de Produit | Product Manager - Cloud Platform & Services >>>>> t:514-629-6775 >>>>> >>>>> CloudOps Votre partenaire infonuagique | Cloud Solutions Experts >>>>> 420 rue Guy | Montreal | Quebec | H3J 1S6 >>>>> w: cloudops.com | tw: @CloudOps_ >> >=20 >=20 > -- > Francois Gaudreault > Gestionnaire de Produit | Product Manager - Cloud Platform & Services > t:514-629-6775 >=20 > CloudOps Votre partenaire infonuagique | Cloud Solutions Experts > 420 rue Guy | Montreal | Quebec | H3J 1S6 > w: cloudops.com | tw: @CloudOps_