LoginSignup
3
3

More than 5 years have passed since last update.

途中で sudo 必要な足場をはさんだ先にある鯖に入る(tramp編)

Last updated at Posted at 2013-11-07
(add-to-list 'tramp-methods
  '("sudosaba"
    (tramp-login-program        "ssh -t saba ssh -t sudosaba sudo ssh")
    (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)))

alist 足せばいいだけだった。別途 .ssh/config 設定とか必要な場合もあるだろうけど。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3