[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp 2.26 emacs 24.3 plink
From: |
Michael Albinus |
Subject: |
Re: tramp 2.26 emacs 24.3 plink |
Date: |
Wed, 16 Jul 2014 09:30:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
MM <address@hidden> writes:
> The update here is that I've found a sort of gateway machine to which
> I can ssh, but this box runs some sort of forwarder where it
> 1. prints the string "Host:"
> 2. waits for user input for the hostname to forward to
> 3. connects and runs a login shell on the entered hostname
>
> Is there a way to make Tramp work with this?
Yes. See the Tramp manual for this
(info "(tramp) Remote shell setup")
You could adapt the example like this:
--8<---------------cut here---------------start------------->8---
(defconst my-tramp-prompt-regexp
(concat (regexp-quote "Host:") "\\s-*")
"Regular expression matching my login prompt question.")
(defun my-tramp-action (proc vec)
"Enter the host name in order to give a correct answer."
(save-window-excursion
(with-current-buffer (tramp-get-connection-buffer vec)
(tramp-message vec 6 "\n%s" (buffer-string))
(tramp-send-string vec "hostname")))) ;; Use the real host name
;; instead of "hostname".
(eval-after-load "tramp-sh"
(add-to-list 'tramp-actions-before-shell
'(my-tramp-prompt-regexp my-tramp-action)))
--8<---------------cut here---------------end--------------->8---
Then you might be able to open a file on the host with "C-x C-f
/plink:address@hidden|address@hidden:/path/to/file". "gateway is the name of
the gateway host, and "host" is the name of your target host. "user1"
and "user2" are the respective users on those machhines.
> I want not only to edit remote files, but also to
> 1. use some sort of tagging (either etags or Semantic tags) of the
> remote files (maybe the local cache TRAMP has of the remote files) to
> be able to jump to symbols,
> 2. launch remote builds
Shall be possible.
> 3. do remote gdb debugging
This used to work in the past. Due to some changes in gdb-mi.el, this
seems to be broken these days. Maybe we shall check together the status.
Best regards, Michael.
- tramp 2.26 emacs 24.3 plink, MM, 2014/07/08
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/07/08
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/07/09
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/07/09
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/07/14
- Re: tramp 2.26 emacs 24.3 plink,
Michael Albinus <=
- Re: tramp 2.26 emacs 24.3 plink, Rodrigo Amestica, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, Rodrigo Amestica, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/07/16
- Re: tramp 2.26 emacs 24.3 plink, Rodrigo Amestica, 2014/07/18