It hangs after tramp-send-command(), tramp-wait-for-output(). It seems that the emacs-tramp can't detect the output of remote command. See the attached file for more details. Any ideas? PS: what's meaning of regex: "[^#$\n]*%s\r?$"? -- Jacky Wang