From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Need Help With Emacs Tramp Mode For 'gcloud compute ssh' Date: Mon, 09 Aug 2021 17:41:40 +0200 Message-ID: <87im0er5fv.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28356"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: "Samuel Banya" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 09 17:42:12 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD7Pn-0007BA-VP for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 17:42:11 +0200 Original-Received: from localhost ([::1]:60596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD7Pm-0003XM-Mw for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 11:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD7PS-0003XB-QF for help-gnu-emacs@gnu.org; Mon, 09 Aug 2021 11:41:50 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:60529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD7PQ-0000EJ-CY for help-gnu-emacs@gnu.org; Mon, 09 Aug 2021 11:41:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628523702; bh=Kk/zwBm/RoCNq02Ta30jVSkAUWbwuHjhVXPO8iJ7LMM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=dRAJrIOs24E1ZDdyqRI9BQV9C2kpyoSI+/3XOUKl5KPkvJN/DOZx3u93903XpUR30 0B7iZk4XSWr98Alge9CMNehxg5ebUZm21NG1qtmgXnMlpd1Fm2pz3BOZOIXrN+yEWO 9ZOriR1Ex5BWv7vSKaBMijQgUHsj5z9iFyqe/xaU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.238.138]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MplXp-1mtuvo4A73-00q9na; Mon, 09 Aug 2021 17:41:42 +0200 In-Reply-To: (Samuel Banya's message of "Sun, 08 Aug 2021 23:03:06 -0400") X-Provags-ID: V03:K1:jx2B0Zpv5zCmNXVMZtz3Yax4wOlrrNYY4hTf3SUK20ws6PaBuHd wbIKSV0vZZsBLdqHc53yj4oFerzfmEQrG0vVR2xySoEXMRHq2Xl5+HM/LQZXzWKLw+KW+77 15cxyv+z9Ccls15K8ZJECZUjb7O1W7IM1AmTeFWLvMc2kHmxbqtrY7r4aimZTv80rS1ZR01 6MNCCG6fwl2jBOGteSYqw== X-UI-Out-Filterresults: notjunk:1;V03:K0:dY6wHcfh8Z0=:T0j53GhRQTwO05fRg3Ob6r ThRTkV7NUeJdlJwhdxRYsX/Qwg74+7hXp15lOnw01t49K7MrVCM6KM+X/e8YLH4EdxW77odTl 1roJojfX0ln8t8cvozpmwy+vcqHajyiwsU0ix4If4DCvYcMi32VCawT0miHahXY5J7nGdnaji ZQSunnVBHT8sPZrcZWF1N/U3Ckf7WU4eunwRSPvwMrGCsbhcceIn1nmdBqqG81rgCRx/zh7Y1 kUd1nLppegMyo5iRtnrP4mPKSf19Iv9a9NY+u7Sk2nOIi+DTT3Dxgiqq/5XJQSqs0UPS82RvM OZbN6jepvDlI8PvGhBtwkMDa5Bdrj/gah5MbzPs2eXI1S8gvujcQ/k5Y8bgbwpoO/Nh1zXsLQ +gJZ5zavv5ZyFUshcrwgF8TUNIG6eZ3p6Z2u9efQaBZdDLgeoJxPaAjgsNMZ6tZoMQlpmknjx jMWsv6IO4Xl0oe3wGTH+Vi7wFd62/4O0ZqmgiHVRZZw4XpFIdEH7hW/7Tm+OSB03wnXQefsGv NRC2QGdylGc0JA2fjjB1GtPlQkcj+CadlatN64bt3plbGqkr+nYTnJf8w2rTh6pv1pzENYTHz Cy5BrLJ0Hc6mwXE4zmYKQorFrzNbrIZ/hJHfNM17VczI0o7sjXXYJSf01zhaJRAlFH/NMt9eW FJ67P4JwqXFw5bFvf2flqD2uZA/xIAfsbQe7+n3GQq9iGlrWIYsGc2G+QMB/fk03m+SntG8vi Dwo2xSAmn6ZaAj0IkE7Qumc4spql5beeVMiaxeaEtXz9StOHhACnUNSuBh3Pmrs3uGXyETAP Received-SPF: pass client-ip=212.227.17.21; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132430 Archived-At: "Samuel Banya" writes: > Hello there, Hi Samuel, > I have looked high and low on the internet, and can't find a decent answer on how to utilize Tramp Mode for 'gcloud compute ssh'. Which Emacs/Tramp version are you using? > (add-to-list 'tramp-methods > '("gcssh" > (tramp-login-program "gcloud compute ssh") This must be exactly the program name. "gcloud" I guess. "compute" and "ssh" must be part of tramp-login-args. > (tramp-login-args (("%h --project example-project example-project-cli"))) "%h" must be an element of its own. Somethging like (tramp-login-args (("compute ssh") ("%h") ("--project example-project example-project-cli"))) > (tramp-gw-args (("-o" "GlobalKnownHostsFile=/dev/null") > ("-o" "UserKnownHostsFile=/dev/null") > ("-o" "StrictHostKeyChecking=no"))) tramp-gw-args do not exists for years. Likely, you don't need them. When you have adapted your config, set also tramp-verbose to 6. Run the test. If it fails, there will be a Tramp debug buffer, which tells more. In case you need help to analyze, show it here. Best regards, Michael.