[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need Help With Emacs Tramp Mode For 'gcloud compute ssh'
From: |
Samuel Banya |
Subject: |
Re: Need Help With Emacs Tramp Mode For 'gcloud compute ssh' |
Date: |
Mon, 09 Aug 2021 13:04:06 -0400 |
User-agent: |
Cyrus-JMAP/3.5.0-alpha0-552-g2afffd2709-fm-20210805.001-g2afffd27 |
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.
>