[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default remote shell in tramp
From: |
Vinh Nguyen |
Subject: |
Re: default remote shell in tramp |
Date: |
Fri, 18 Jun 2010 10:19:52 -0700 |
Emacs hangs with the following in the minibuffer:
Tramp: Found remote shell prompt on `server'
C-g C-g
debug buffer:
10:12:54.953703 tramp-maybe-open-connection (3) # Opening connection
for MASK using ssh...
10:12:54.961623 tramp-maybe-open-connection (6) # /bin/sh
10:12:54.962863 tramp-wait-for-regexp (6) #
#$
10:12:54.963880 tramp-maybe-open-connection (3) # Sending command
`exec ssh MASK -e none'
10:12:54.964100 tramp-send-command (6) # exec ssh MASK -e none
10:12:54.964720 tramp-process-actions (3) # Waiting for prompts from
remote shell
10:12:54.972888 tramp-process-one-action (5) # Looking for regexp
"\(.*ogin\( .*\)?: *\)\'" from remote shell
10:12:54.973463 tramp-process-one-action (5) # Looking for regexp
"\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
10:12:54.973710 tramp-process-one-action (5) # Looking for regexp
"\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification
failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o
supported authentication methods left to try!\)\|Permission
denied\|\(?:Sorry, try again\|Timeout, server not
responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote
shell
10:12:54.973969 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
10:12:54.974161 tramp-process-one-action (5) # Looking for regexp
"\(\(?:^\|\)[^#$%>
]*#?[#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
10:12:54.974383 tramp-process-one-action (5) # Looking for regexp
"\(\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*\)\'" from remote shell
10:12:54.974562 tramp-process-one-action (5) # Looking for regexp
"\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return
cancels connectio\)n)\)\s-*\)\'" from remote shell
10:12:54.974751 tramp-process-one-action (5) # Looking for regexp
"\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
10:12:54.974944 tramp-process-one-action (5) # Looking for regexp
"\(\)\'" from remote shell
10:12:54.975128 tramp-process-one-action (5) # Call `tramp-action-process-alive'
10:12:55.934778 tramp-process-one-action (5) # Looking for regexp
"\(.*ogin\( .*\)?: *\)\'" from remote shell
10:12:55.936384 tramp-process-one-action (5) # Looking for regexp
"\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
10:12:55.936826 tramp-process-one-action (5) # Looking for regexp
"\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification
failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o
supported authentication methods left to try!\)\|Permission
denied\|\(?:Sorry, try again\|Timeout, server not
responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote
shell
10:12:55.937370 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
10:12:55.937738 tramp-process-one-action (5) # Looking for regexp
"\(\(?:^\|\)[^#$%>
]*#?[#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
10:12:55.938137 tramp-process-one-action (5) # Looking for regexp
"\(\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*\)\'" from remote shell
10:12:55.938454 tramp-process-one-action (5) # Looking for regexp
"\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return
cancels connectio\)n)\)\s-*\)\'" from remote shell
10:12:55.938764 tramp-process-one-action (5) # Looking for regexp
"\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
10:12:55.939075 tramp-process-one-action (5) # Looking for regexp
"\(\)\'" from remote shell
10:12:55.939401 tramp-process-one-action (5) # Call `tramp-action-process-alive'
10:12:56.920457 tramp-process-one-action (5) # Looking for regexp
"\(.*ogin\( .*\)?: *\)\'" from remote shell
10:12:56.923430 tramp-process-one-action (5) # Looking for regexp
"\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
10:12:56.923851 tramp-process-one-action (5) # Looking for regexp
"\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification
failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o
supported authentication methods left to try!\)\|Permission
denied\|\(?:Sorry, try again\|Timeout, server not
responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote
shell
10:12:56.993285 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
10:12:56.993590 tramp-process-one-action (5) # Looking for regexp
"\(\(?:^\|\)[^#$%>
]*#?[#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
10:12:56.993963 tramp-process-one-action (5) # Looking for regexp
"\(\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*\)\'" from remote shell
10:12:56.994175 tramp-process-one-action (5) # Looking for regexp
"\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return
cancels connectio\)n)\)\s-*\)\'" from remote shell
10:12:56.994378 tramp-process-one-action (5) # Looking for regexp
"\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
10:12:56.994573 tramp-process-one-action (5) # Looking for regexp
"\(\)\'" from remote shell
10:12:56.994784 tramp-process-one-action (5) # Call `tramp-action-process-alive'
10:12:57.657458 tramp-process-one-action (5) # Looking for regexp
"\(.*ogin\( .*\)?: *\)\'" from remote shell
10:12:57.662113 tramp-process-one-action (5) # Looking for regexp
"\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
10:12:57.662738 tramp-process-one-action (5) # Looking for regexp
"\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification
failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o
supported authentication methods left to try!\)\|Permission
denied\|\(?:Sorry, try again\|Timeout, server not
responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote
shell
10:12:57.663918 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
10:12:57.664377 tramp-process-one-action (5) # Call `tramp-action-succeed'
10:12:57.664678 tramp-process-actions (6) #
Control socket connect(MASK): Connection refused
ControlSocket MASK already exists, disabling multiplexing
Linux acer 2.6.32-21-generic-pae #32-Ubuntu SMP Fri Apr 16 09:39:35
UTC 2010 i686 GNU/Linux
Ubuntu 10.04 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
System information as of Fri Jun 18 10:12:29 PDT 2010
System load: 0.01 Memory usage: 7% Processes: 107
Usage of /: 19.9% of 908.10GB Swap usage: 0% Users logged in: 1
Graph this data and manage this system at https://landscape.canonical.com/
58 packages can be updated.
14 updates are security updates.
No mail.
MASK
address@hidden:~$
10:12:57.665457 tramp-maybe-open-connection (3) # Found remote shell
prompt on `MASK'
10:12:57.665808 tramp-send-command (6) # exec env ENV=''
PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/bash
10:14:08.375115 tramp-accept-process-output (3) # Opening connection
for MASK using ssh...done
I think the issue is that an ssh session is open, but not the file or directory.
Also, I tried this a few times in one emacs session and the entire
emacs program crashed! Even asked for a core dump.
Thanks.
Vinh
PS patch was applied to the latest CVS version of tramp.
On Fri, Jun 18, 2010 at 5:52 AM, Michael Albinus <address@hidden> wrote:
> Vinh Nguyen <address@hidden> writes:
>
> Hi Vinh,
>
>>>> (require 'tramp)
>>>> (setq tramp-default-method "ssh")
>>>> ;; do C-x f, /address@hidden:~/
>>>> (setcdr (assoc 'tramp-remote-sh (assoc "ssh" tramp-methods))
>>>> '("/bin/bash"))
>>>
>>> Have you set the last line *before* you have opened your files? The
>>> comment indicates another order ...
>>
>> yea, i did. the comment is there to remind me how to edit files
>> remotely that's all :)
>>
>>>> The above does not work. Appears to still be using /bin/sh. Any
>>>> other suggestions?
>>>
>>> Could you, please, apply (setq tramp-verbose 6) and show the traces
>>> after opening the connection? I would also like to see the value of
>>> `tramp-methods'.
>>
>> Here is what's in *debug tramp/ssh ... *:
>
> Could you, please, check, whether the following patch works (you still
> need the recipe I gave you):
>
> --8<---------------cut here---------------start------------->8---
> *** /home/albinus/src/tramp/lisp/tramp.el.~2.800.~ 2010-06-11
> 16:48:11.000000000 +0200
> --- /home/albinus/src/tramp/lisp/tramp.el 2010-06-18 14:36:43.377056139
> +0200
> ***************
> *** 4683,4689 ****
> (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
> ;; We cannot use `shell-file-name' and `shell-command-switch',
> ;; they are variables of the local host.
> ! (args (list "/bin/sh" "-c" (substring command 0 asynchronous)))
> current-buffer-p
> (output-buffer
> (cond
> --- 4683,4694 ----
> (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
> ;; We cannot use `shell-file-name' and `shell-command-switch',
> ;; they are variables of the local host.
> ! (args (list
> ! (tramp-get-method-parameter
> ! (tramp-file-name-method
> ! (tramp-dissect-file-name default-directory))
> ! 'tramp-remote-sh)
> ! "-c" (substring command 0 asynchronous)))
> current-buffer-p
> (output-buffer
> (cond
> --8<---------------cut here---------------end--------------->8---
>
> Best regards, Michael.
>
- default remote shell in tramp, Vinh Nguyen, 2010/06/16
- Re: default remote shell in tramp, Michael Albinus, 2010/06/17
- Re: default remote shell in tramp, Vinh Nguyen, 2010/06/17
- Re: default remote shell in tramp, Michael Albinus, 2010/06/17
- Re: default remote shell in tramp, Vinh Nguyen, 2010/06/17
- Re: default remote shell in tramp, Michael Albinus, 2010/06/17
- Re: default remote shell in tramp, Vinh Nguyen, 2010/06/17
- Re: default remote shell in tramp, Michael Albinus, 2010/06/18
- Re: default remote shell in tramp, Michael Albinus, 2010/06/18
- Re: default remote shell in tramp,
Vinh Nguyen <=
- Re: default remote shell in tramp, Michael Albinus, 2010/06/18
- Re: default remote shell in tramp, Vinh Nguyen, 2010/06/18
- Re: default remote shell in tramp, Michael Albinus, 2010/06/18
- Re: default remote shell in tramp, Vinh Nguyen, 2010/06/18
- Re: default remote shell in tramp, Michael Albinus, 2010/06/19
- Re: default remote shell in tramp, Vinh Nguyen, 2010/06/19
- Re: default remote shell in tramp, Michael Albinus, 2010/06/19
- Re: default remote shell in tramp, Vinh Nguyen, 2010/06/19
- Re: default remote shell in tramp, Terrence Brannon, 2010/06/28
- Re: default remote shell in tramp, Terrence Brannon, 2010/06/28