From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Samuel Banya" Newsgroups: gmane.emacs.help Subject: Re: Need Help With Emacs Tramp Mode For 'gcloud compute ssh' Date: Mon, 09 Aug 2021 13:04:06 -0400 Message-ID: References: <87im0er5fv.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14319"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-552-g2afffd2709-fm-20210805.001-g2afffd27 Cc: help-gnu-emacs@gnu.org To: "Michael Albinus" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 09 19:06:03 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 1mD8iw-0003Mj-7B for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 19:06:02 +0200 Original-Received: from localhost ([::1]:44190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD8iu-0005MX-Hz for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 13:06:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD8hU-0003as-9R for help-gnu-emacs@gnu.org; Mon, 09 Aug 2021 13:04:34 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:57745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD8hS-0006bz-7Q for help-gnu-emacs@gnu.org; Mon, 09 Aug 2021 13:04:32 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9DAF1320094D; Mon, 9 Aug 2021 13:04:28 -0400 (EDT) Original-Received: from imap44 ([10.202.2.94]) by compute5.internal (MEProxy); Mon, 09 Aug 2021 13:04:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=7P9RHdTZDqkeuIV7RzyYOJ6OmTwAJ7v RQ2sSj944ROg=; b=xx7VZkztMQdn6Gcbwe1nCnWyRtRVaFZhnLtiLUYKYWZaURe 2hn9Dx3djLbw0s5RVmcZ0Q4FL8SwDEqDuV4AlgOv21GbMwt2bVceVIC+2iTEylrz 1sbS4C5mgWwMfWzLizKZP6/5sLm1CtUr6Se1yp9TdCQgJWeCWKaq0gd09C8FS8ry U9D7UEHFZENgBxt4r4DnYkV13XfQjd4kLebvvO0YdHXzFztmtOwZRbNBUdFyYT2f wmaF+rYIITk5kgAB4x5NHno3fLRbDIZhKGUHUAkhqia3X2RPlkieS7ZBdwRcqk6f iHha+RjguI4ZLNLFTgA9D/9bLt6uhhQXVHMeG1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=7P9RHd TZDqkeuIV7RzyYOJ6OmTwAJ7vRQ2sSj944ROg=; b=Ru/xdUbcqUKdsKP/OGy+Jd u0uYNDSPLFsoCHGq22Kh/DC5kmMcaN3utIrwITcunSj4igfpTb/yVTG4gm3nQTDb 5tTsw8/ckizJlWvb4XyvDxXse891VbFQoT/FCdmwHXSQ9HN5gBCcJpa0JZncxOHl Qzi6gODhOA4IOet/0NJbsiekFFMgEzCa+VuYnYsML6RKb7GPtEBExbvTKWwdoUm+ SEkxMDmnhj3mTuDI0pfMi3hDOj/NoJPmcGmsib4NqEl5jpZ1lzxmRpG5KOCGtf4R G54qYhpVy5GnvyE1OwVS1l5/zfEnDNKxt8IZTcER/dkNtPFlXC4m7xkx2cfwcdag == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeejgddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreertdenucfhrhhomhepfdfurghm uhgvlhcuuegrnhihrgdfuceoshgsrghnhigrsehfrghsthhmrghilhdrtghomheqnecugg ftrfgrthhtvghrnhepvddufeeghfeuieeitdffhffghefhgfelleffhfdtffeutdffteei vedtvdejieeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgsrghnhigrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id B9623FA0AA6; Mon, 9 Aug 2021 13:04:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <87im0er5fv.fsf@gmx.de> Received-SPF: pass client-ip=64.147.123.24; envelope-from=sbanya@fastmail.com; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:132432 Archived-At: Hello Michael, I am currently using the latest Emacs Version 27.2. This is specifically for my work Macbook running MacOSX Big Sur (latest). On Mon, Aug 9, 2021, at 11:41 AM, Michael Albinus wrote: > "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. >