tramp-devel
[Top][All Lists]
Advanced

[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: Mon, 15 Sep 2014 14:05:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

MM <address@hidden> writes:

> Of course, all sensitive info replaced, easily done in emacs with a
> text file:-) zip attached,

Well, there is the following command exchange:

> 11:42:59.339000 tramp-send-command (6) # plink -l myuser -pw mypass -ssh 
> gateway && exit || exit
> 11:43:04.709000 tramp-process-one-action (6) #
> plink -l myuser -pw mypass -ssh gateway && exit || exit
> Last login: Mon Jul 14 08:14:39 2014 from 172.16.12.149
> Host:

Well, that's fine. You login to the host gateway, and you are asked for
the host.

I don't understand why you pass your password with the -pw option,
that's not necessary (and a security flaw). But it doesn't matter for
functionality.

> 11:43:04.841000 tramp-process-one-action (6) #
> gateway
> ERROR: Access to gateway not allowed
> Host:

Hmm, looks like you have sent "gateway" as final host name, which is not
allowed. You must send the real hostname where you want to go to. in
your function

(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"))))

"hostname" must be this real host name. Maybe you need also a trailing
newline, then apply

      (tramp-send-string vec "hostname\n"))))

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]