Skip to content

Instantly share code, notes, and snippets.

@darkslategrey
Forked from scjody/tramp-gcloud-ssh
Created July 13, 2018 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkslategrey/e30c7f43c111dcf2d7a674c020a5427d to your computer and use it in GitHub Desktop.
Save darkslategrey/e30c7f43c111dcf2d7a674c020a5427d to your computer and use it in GitHub Desktop.
EMACS TRAMP setup for "gcloud compute ssh"
;; TRAMP gcloud ssh
(add-to-list 'tramp-methods
'("gssh"
(tramp-login-program "gssh")
(tramp-login-args (("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-gw-args (("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no")))
(tramp-default-port 22)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment