On Wed, Aug 3, 2011 at 11:17 AM, Michael Albinus <[email protected]> wrote: >> >> exec env ENV='' PROMPT_COMMAND='' PS1="#$" PS2='' PS3='' /bin/sh >> Illegal variable name. > > The sequence PS1="#$" does not exist in Tramp 2.1.20. Could you, please, > check whether you have a shadow tramp.el lying around, from an earlier > installation? You could check it with > > M-x list-load-path-shadows >
It finds: 1 Emacs Lisp load-path shadowing was found: ~/.emacs.d/asn1-mode which is unrelated i guess. Here is the interesting part of the debug: 12:34:02.703000 tramp-maybe-open-connection (3) # Found remote shell prompt on `ip.add.re.ss' 12:34:02.703000 tramp-open-shell (5) # Opening remote shell `/bin/sh'... 12:34:02.704000 tramp-get-connection-property (7) # process-name nil 12:34:02.704000 tramp-get-connection-property (7) # remote-echo nil 12:34:02.705000 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1="#$" PS2='' PS3='' /bin/sh 12:34:02.705000 tramp-get-connection-property (7) # process-name nil 12:34:02.706000 tramp-get-connection-property (7) # chunksize nil 12:34:02.706000 tramp-set-connection-property (7) # last-cmd-time (20025 9242 706000) 12:34:02.707000 tramp-send-string (10) # exec env ENV='' PROMPT_COMMAND='' PS1="#$" PS2='' PS3='' /bin/sh 12:34:02.707000 tramp-get-connection-property (7) # process-buffer nil 12:34:02.707000 tramp-get-connection-property (7) # check-remote-echo nil 12:34:02.708000 tramp-get-connection-property (7) # check-remote-echo nil 12:34:02.708000 tramp-accept-process-output (10) # *tramp/plink [email protected]* run 12:34:02.834000 tramp-accept-process-output (10) # exec env ENV='' PROMPT_COMMAND='' PS1="#$" PS2='' ^H PS3='' /bin/sh^M Illegal variable name. user on host [~][42]> The ^H and ^M are control characters. > > Hmm, yes, $TERM is set later in the login sequence. It looks like the > method plinkx sets it at the very beginning, maybe this helps? > I am unable to use the plinkx method! From a command line, i can specify the putty session: plink -load "session name with spaces, slash, parenthesis" -t. But from emacs, it says host not found. plink -ssh plinkx && exit || exit Unable to open connection: Host does not exist Process *tramp/pscp plinkx* exited abnormally with code 1 Looks like if its using the session name as a hostname! And if i use a simple word as a session name, it thinks that its a hostname and refuses to use it! But not always, sometimes it tries to connect and i get the password prompt but it does not accept my password! And other times, emacs completely hangs when I C-g the password prompt. I was able to extract this: plink -load profile1 -t env 'TERM=dumb' 'PROMPT_COMMAND=' 'PS1=#$' /bin/sh && exit || exit Using keyboard-interactive authentication. Password: Using keyboard-interactive authentication. Password: Using keyboard-interactive authentication. Password: Using keyboard-interactive authentication. Password: Using keyboard-interactive authentication. Password: Using keyboard-interactive authentication. Password: Using keyboard-interactive authentication. Password: Access denied Access denied Access denied Access denied Access denied Access denied FATAL ERROR: Server sent disconnect message type 2 (protocol error): "Too many authentication failures for user" Process *tramp/plinkx profile1* exited abnormally with code 1 Thanks for your help Michael. Best regards, Peter _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
