MM <[email protected]> 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.
_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel