Configuring TRAMP
TRAMP is initially configured to use the scp program to connect to the remote host. Just type C-x C-f and then enter file name /scp:user@host:/path/to/file. For details, See Selecting a default method, See Selecting a default user, See Selecting a default host.
For problems related to the behavior of the remote shell, See Remote shell setup hints.
For changing the connection type and file access method from the defaults to one of several other options, See Types of connections to remote hosts.
Note that some user options described in these examples are not auto loaded by Emacs. All examples require TRAMP to be installed and loaded:
(customize-set-variable 'tramp-verbose 6 "Enable remote command traces")For functions used to configure TRAMP, the following clause may be used in your init file:
(with-eval-after-load 'tramp (tramp-change-syntax 'simplified))Changing other variables via directory-local variables on a remote directory must be enabled by setting enable-remote-dir-locals to non-nil, See (emacs)Directory Variables.
- Optional methods which must be enabled first
- Types of connections to remote hosts
- Inline methods
- External methods
- GVFS-based external methods
- FUSE-based external methods
- Selecting a default method
- Selecting a default user
- Selecting a default host
- Connecting to a remote host using multiple hops
- Passing firewalls
- Using Non-Standard Methods
- Selecting config files for user/host name completion
- Reusing passwords for several connections
- Reusing connection related information
- Setting own connection related information
- How TRAMP finds and uses programs on the remote host
- Remote shell setup hints
- Ssh setup hints
- FUSE setup hints
- Android shell setup hints
- Kubernetes setup hints
- Auto-save, File Lock and Backup configuration
- Protect remote files by encryption