From: Michael Albinus <michael.albinus@gmx.de>
To: "Samuel Banya" <sbanya@fastmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Need Help With Emacs Tramp Mode For 'gcloud compute ssh'
Date: Mon, 09 Aug 2021 17:41:40 +0200 [thread overview]
Message-ID: <87im0er5fv.fsf@gmx.de> (raw)
In-Reply-To: <c6bec51e-30ec-4063-9237-5415ec29566b@www.fastmail.com> (Samuel Banya's message of "Sun, 08 Aug 2021 23:03:06 -0400")
"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 15:41 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 [this message]
2021-08-09 17:04 ` Samuel Banya
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im0er5fv.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=sbanya@fastmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.