On 15 September 2014 13:05, Michael Albinus <[email protected]> wrote:
> 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.
Indeed, that was the mistake.
It successfully connected and goes through a set of checks to find
appropriate commands.
Two issues are outstanding:
1. From tramp debug
Finding true name for
`/myplink:host:c:/home/user/test/btr.cpp'
because my emacs is on windows, and I did C-x C-f
/host:test/btr.cpp or C-x C-f /host:~/test/brt.cpp
Somehow the C drive and my user's Win home dir gets inserted in there....
2.
13:48:35.327000 tramp-do-file-attributes-with-ls (5) # file attributes
with ls: c:/c:
13:48:35.327000 tramp-get-ls-command (5) # Finding a suitable `ls' command
13:48:35.329000 tramp-get-ls-command (1) # File error: Couldn't find a
proper `ls' command
It seems the home directory somehow gets expanded to be the local
windows box home dir...
_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel