Next: , Previous: , Up: Configuring TRAMP   [Contents][Index]

4.15 Setting own connection related information

For more precise customization, parameters specified by tramp-methods can be overwritten manually.

Set tramp-connection-properties to manually override tramp-methods. Properties in this list are in the form (regexp property value). regexp matches remote file names. Use nil to match all. property is the property’s name, and value is the property’s value.

property is any method specific parameter contained in tramp-methods. The parameter key in tramp-methods is a symbol name tramp-<foo>. To overwrite that property, use the string "<foo>" for property. For example, this changes the remote shell:

(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:user@randomhost.your.domain:")
                   "remote-shell" "/bin/ksh"))

(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:user@randomhost.your.domain:")
                   "remote-shell-login" '("-")))

The parameters tramp-remote-shell and tramp-remote-shell-login in tramp-methods now have new values for the remote host.

property could also be any property found in tramp-persistency-file-name.

4.15.1 Relevant connection properties to override

Not all connection properties need to be changed. The most relevant properties are listed here:

Next: How TRAMP finds and uses programs on the remote host, Previous: Reusing connection related information, Up: Configuring TRAMP   [Contents][Index]