Created
July 1, 2022 00:04
-
-
Save qmega/6de28f606599baecac8005ffba5b1aeb to your computer and use it in GitHub Desktop.
Reach inside systemd containers with emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'tramp-methods `("machinectl-shell" | |
(tramp-login-program "machinectl") | |
(tramp-login-args (("shell" "--quiet") | |
("--uid=%u") | |
("%h") | |
("%l") | |
)) | |
(tramp-remote-shell ,tramp-default-remote-shell) | |
(tramp-remote-shell-login ("-l")) | |
(tramp-remote-shell-args ("-c")) | |
(tramp-connection-timeout 10) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment