help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help With Emacs Tramp Mode For 'gcloud compute ssh'


From: Michael Albinus
Subject: Re: Need Help With Emacs Tramp Mode For 'gcloud compute ssh'
Date: Mon, 09 Aug 2021 17:41:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]