Tramp provides a debugging buffer, usually *debug tramp...*
that provides a lot of information. For example...
;; GNU Emacs: 24.4.51.2 Tramp: 2.2.9-24.4 -*- mode: outline; -*-
17:54:29.340451 tramp-maybe-open-connection (3) # Opening connection for schwern.net using scp...
17:54:29.369182 tramp-maybe-open-connection (3) # Sending command `exec ssh -o ControlPath=/var/folders/0b/7xp2lxbd7yl0tcpms06fr3d40000gn/T/tramp.40010Dqz.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none schwern.net'
You can see, it's running exec ssh
which will pick up the normal ssh
from your PATH
. If you want to be sure you can run M-x shell
and check which ssh
or use the commands in @wasamasa's answer.
What tramp will use to login is controlled by the tramp-login-program
argument to the particular method in the tramp-methods
variable. For example, here's the ssh method.
("ssh"
(tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u")
("-p" "%p")
("%c")
("-e" "none")
("%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))