From: "Samuel Banya" <sbanya@fastmail.com>
To: "Michael Albinus" <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Need Help With Emacs Tramp Mode For 'gcloud compute ssh'
Date: Mon, 09 Aug 2021 13:04:06 -0400 [thread overview]
Message-ID: <bbcbdf02-8be6-4988-9f61-33f9a2a3e5ca@www.fastmail.com> (raw)
In-Reply-To: <87im0er5fv.fsf@gmx.de>
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" <sbanya@fastmail.com> 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.
>
next prev parent reply other threads:[~2021-08-09 17:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-09 3:03 Need Help With Emacs Tramp Mode For 'gcloud compute ssh' Samuel Banya
2021-08-09 15:41 ` Michael Albinus
2021-08-09 17:04 ` Samuel Banya [this message]
2021-08-10 12:55 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bbcbdf02-8be6-4988-9f61-33f9a2a3e5ca@www.fastmail.com \
--to=sbanya@fastmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).