;;; -*- lexical-binding: t -*- ;;; ;;; this file: ;;; http://user.it.uu.se/~embe8573/emacs-init/tramp-my.el ;;; https://dataswamp.org/~incal/emacs-init/tramp-my.el (require 'tramp) (setq tramp-default-method "ssh") (setq tramp-verbose 10) (add-to-list 'tramp-methods '("myssh" ; myssh or mysshx (tramp-login-program "ssh") ; ssh or sshx (tramp-login-args (("-l" "%u") ("-p" "%p") ("%c") ("-e" "none") ("-t" "-t") ("%h") ("\"/bin/sh -i\"") )) (tramp-async-args (("-q"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) )) ;; (find-file "/myssh:embe8573@polhem.it.uu.se:darn.txt") ;; (find-file "/mysshx:embe8573@polhem.it.uu.se:darn.txt") ;; ssh ;; ;; Tramp: Opening connection for embe8573@polhem.it.uu.se using myssh... ;; Tramp: Sending command ‘exec ssh -l embe8573 -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none -t -t polhem.it.uu.se "/bin/sh -i"’ ;; Tramp: Waiting for prompts from remote shell... ;; Tramp: Sending Password ;; Tramp: Waiting for prompts from remote shell...done ;; Tramp: Found remote shell prompt on ‘polhem.it.uu.se’ ;; Tramp: Opening connection for embe8573@polhem.it.uu.se using myssh...failed ;; tramp-file-name-handler: ‘tramp-histfile-override’ uses invalid file ‘~/.tramp_history’