Troubleshooting the Emacs Tramp Connection Used to Work - Password or Shell Regexp Wrong?
I am trying to troubleshoot why the emacs + tramp connection that was used to work is now not working. At first I thought it might be a Aquamacs issue, but I downloaded Emacs.app on OSX based on version 23.3 (9.0) and it doesn't work either. The remote host runs FreeBSD 7.4 and the default user shell is / usr / local / bin / bash.
If I try to open a file like:
Find file: /username@remote_host:~/folder/
... the cursor in the minibuffer stops:
Find file: /username@remote_host
... and I can't print anything. Mixing this, I can't Cg stop it. Emacs just locks. It expires in a minute or so, but is unusable until then.
The relevant lines of my .emacs file:
(require 'tramp) (setq tramp-debug-buffer t) (setq tramp-verbose 9) (setq tramp-default-method "ssh") (setq tramp-password-prompt-regexp ".*[Pp]assword: *$") (setq tramp-shell-prompt-pattern "^[^;$#>]*[;$#>] *") (setq password-cache-expiry nil)
And the password and shell prompts on the machine in question (anonymous) look like this:
Password:
[username@remote_host ~]$ # with a single space at the end
Tramp-password-prompt-regexp is ".*[Pp]assword: *$"
Tramp-pattern-pattern value "^[^;$#>]*[;$#>] *"
And finally, the last few lines of the debug buffer:
14:36:40.271851 tramp-get-connection-property (7) # check-remote-echo nil
14:36:41.090876 tramp-wait-for-regexp (6) #
are you awake
#$
14:36:41.091037 tramp-wait-for-regexp (1) # File error: [[Regexp `\(^\|\)[^#$
?$' not found in 60 secs]]
I'm not sure where the other version of the shell command line comes from, but I don't even get to the password prompt anyway.
Any ideas what I might be doing wrong?
Adding
GNU Emacs 22.1.1 (mac-apple-darwin, Carbon Version 1.6.0) running, Tramp version 2.0.55. However, I am reluctant to rely on this as it is based on a terminal window, and I confused Cmd, Ctrl and Caps Lock to make my workstation look more like my home machine, and then told Emacs to treat the Cmd key as an alternative to Ctrl; Unfortunately, the terminal window traps multiple Cmd key combinations.
Further
Downloaded Emacs-22.3-i386-10.5.7.dmg from Emacs for OS X which uses tramp 2.0.58-pre. This works too, and has less problem with environment capture key combinations. But I still don't understand why versions of Aquamacs and later versions of Carbon Emacs stopped working.
source to share
No one has answered this question yet
Check out similar questions: