Skip to content

How do I use Tramp to work in Emacs via SSH?

Tramp can use a number of protocols to connect to remote machines to read files and even run commands on those files remotely. A popular one is ssh. As well as Cygwin versions of openssh, you can use PuTTY’s command line plink program as the ssh client. The relevant methods to use in tramp-default-method or tramp-default-method-alist for these options are:

  • openssh

    • scp Uses scp for copying, ssh for shell operations.
    • ssh Uses ssh with encoding on stdin/stdout for file transfer.
  • PuTTY

    • pscp Uses pscp for copying, plink for shell operations.
    • plink Uses plink with encoding on stdin/stdout for file transfer.