(require 'tramp)
(setq tramp-default-method "ssh")
(nconc (cadr (assq 'tramp-login-args (assoc "ssh" tramp-methods))) '("/bin/sh" "-i"))
(setcdr (assq 'tramp-remote-sh (assoc "ssh" tramp-methods)) '("/bin/sh -i"))
(modify-coding-system-alist 'process "plink" 'utf-8-unix)
(setq tramp-default-method "plink" tramp-completion-without-shell-p t)
(setq tramp-debug-buffer t)
(setq tramp-shell-prompt-pattern "^[ $]+")
(add-to-list
'tramp-multi-connection-function-alist
'("sshx" tramp-multi-connect-rlogin "plink -ssh -t %h -l %u /bin/sh%n"))