Jon Schewe <[email protected]> writes:
Hi Jon,
> I connect to one host with /ssh:tld.com|sudo:[email protected]:
> I connect to a second host with
> /ssh:[email protected]|sudo:[email protected]:
>
> Initially everything is OK. However after the connections time out and I
> want to reconnect I find that connecting to
> /ssh:[email protected]|sudo:[email protected]: prompts me for the password
> for ssh:tld.com instead of ssh:[email protected]. I also find that the
> files that I see are on tld.com instead of sub.tld.com.
>
> I have tried cleaning up all connections and all buffers and I still get
> prompted for the wrong host until I restart emacs.
Could you pls try the following patch?
*** /tmp/ediffV4aqHb 2019-05-06 16:49:03.257188246 +0200
--- /home/albinus/src/tramp-2-2-stable/lisp/tramp-sh.el 2019-05-06 16:48:47.418517031 +0200
***************
*** 4641,4648 ****
;; Add the hop.
(add-to-list
'tramp-default-proxies-alist
! (list (and (stringp host) (regexp-quote host))
! (and (stringp user) (regexp-quote user))
proxy))
(setq item (tramp-dissect-file-name proxy))))
;; Save the new value.
--- 4641,4648 ----
;; Add the hop.
(add-to-list
'tramp-default-proxies-alist
! (list (and (stringp host) (concat "^" (regexp-quote host) "$"))
! (and (stringp user) (concat "^" (regexp-quote user) "$"))
proxy))
(setq item (tramp-dissect-file-name proxy))))
;; Save the new value.
Best regards, Michael.
_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel