Here is the output of the *Messages* buffer with tramp verbosity at 6, and auth-source-debut set to t:
---------------------
Tramp: Opening connection for
address@hidden using sudo...
Tramp: Sending command `exec ssh -l mike -e none 192.168.1.120'
Tramp: Waiting for prompts from remote shell
----------------------
At this point I am prompted for a password. (
address@hidden).
Here is the same output with "with-parsed-tramp-file-name" commented out in the "tramp-read-passwd" function:
-----------------------
Tramp: Opening connection for
address@hidden using sudo...
Tramp: Sending command `exec ssh -l mike -e none 192.168.1.120'
Tramp: Waiting for prompts from remote shell
Tramp: Sending password
auth-source-user-or-password: get password for 192.168.1.120 (ssh)
auth-source-user-or-password: found (password)=SECRET for 192.168.1.120 (ssh)
Tramp: Sending command `exec ssh -l mike -e none 192.168.1.120'
Tramp: Found remote shell prompt on `192.168.1.120'
Tramp: Sending command `exec sudo -u root -s -H -p Password:'
Tramp: Waiting for prompts from remote shell
Tramp: Sending command `exec sudo -u root -s -H -p Password:'
Tramp: Found remote shell prompt on `192.168.1.120'
Tramp: Opening connection for
address@hidden using sudo...done
---------------------
This one is successful.
I am loading emacs with an empty .emacs file except for the following function I have been using for testing:
---------
(defun my-SSHelper-connect()
(interactive)
(add-to-list 'load-path "~/Downloads/tramp-2.2.1/lisp")
(require 'auth-source)
(setq auth-source-debug t)
(require 'tramp)
(setq tramp-verbose 6)
(setq tramp-default-method "ssh")
(setq auth-sources '((:source "/home/mike/Desktop/.authinfo" :host t :protocol t)))
(add-to-list 'tramp-default-proxies-alist
'("192.168.1.120" "\\`root\\'" "/
ssh:address@hidden:"))
(find-file "/sudo:
192.168.1.120:"))
---------
Does this look correct to someone with a trained eye? =)
Thanks again for the help.
--Mike