I am trying to use Tramp to log into a server that has no SSH keys, just a password. Unfortunately, upon execution of my /ssh:[email protected]:~/
command, there is no password prompt and the minibuffer says Sending password
, and fails to login. How can I get Tramp to prompt me for a password? Or, how can I configure Tramp to log into this server that has no SSH keys and just a password?
I can SSH into the server via terminal just fine with ssh [email protected]
, where the password prompt is:
[email protected]'s password:
Unless I enter my password, there is no other output in the terminal.
Here is the output in my *Messages*
buffer:
Tramp: Opening connection for [email protected] using ssh...
Tramp: Sending command `exec ssh -l root -e none 111.111.111.111'
Tramp: Waiting for prompts from remote shell
Tramp: Sending password
Tramp: Sending command `exec ssh -l root -e none 111.111.111.111'
Tramp: Opening connection for [email protected] using ssh...done
Quit
and after setting a verbose output using (setq tramp-verbose 10)
, here is the output into my *debug tramp/ssh [email protected]*
buffer:
Note that I get the same results when using emacs -q
.
My M-x tramp-version
is 2.2.6-24.3, running on Ubuntu 14.04.
Any help would be appreciated, or even a description of the logs. I am confused because Tramp seems to be sending some kind of default password without prompting me, even when run with emacs -q
.
Update
I tried setting tramp-password-prompt-regexp
with the following:
(setq
tramp-password-prompt-regexp
(concat
"^.*"
(regexp-opt
'("passphrase" "Passphrase"
;; English
"password" "Password"
;; Deutsch
"passwort" "Passwort"
;; Français
"mot de passe" "Mot de passe") t)
".*:\0? *"))
which is ^.*\(Mot de passe\|Pass\(?:phrase\|wor[dt]\)\|mot de passe\|pass\(?:phrase\|wor[dt]\)\).*:^@
when evaluated with (message tramp-password-prompt-regexp)
.
and here is the updated output from *debug tramp/ssh [email protected]*
:
(lines 1-44) http://pastebin.com/99w6LbyX (lines 45-88) http://pastebin.com/2LrDYzNk
(setq tramp-verbose 10)
*debug tramp*
or similar. This should tell you a little more. TRAMP does not write the debug messages to*Messages*
.*debug tramp*
buffer output. I'm still not sure why Tramp doesn't offer a password prompt.tramp-password-prompt-regexp
and the actual password prompt on the remote.