From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Zhongwei Yao Newsgroups: gmane.emacs.help Subject: Tramp hang waiting for prompts from remote shell Date: Fri, 8 Nov 2019 15:56:02 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="4847"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 08 08:56:50 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSz8R-00016I-VY for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Nov 2019 08:56:48 +0100 Original-Received: from localhost ([::1]:50466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSz8Q-0001EY-SC for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Nov 2019 02:56:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46881) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSz7y-0001EA-Ug for help-gnu-emacs@gnu.org; Fri, 08 Nov 2019 02:56:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSz7w-0004yb-Rr for help-gnu-emacs@gnu.org; Fri, 08 Nov 2019 02:56:18 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:38567) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSz7w-0004ne-Fx for help-gnu-emacs@gnu.org; Fri, 08 Nov 2019 02:56:16 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id s10so4276773edi.5 for ; Thu, 07 Nov 2019 23:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=M0AnLjh+ULAFmGC+wf0mUYVp8Uo/49966bkNh7ZMHRs=; b=DDiqkV8hJBl6Pjf9n/7mGE5LXwXXlPw1g+7QLHN36n3xUvtMQZTxwfjxgfP/wm2zjZ U05r/3p4ifjqUxMfvuwurMCPSIYQ+t9CLVnxNpPMAAPPP2xpJ6ZQmcNu4KDWVJlK4CO7 3i/4cBi0uh89XflDTEu6wwe76gNs13kWXHvRyjDtT8lhBdrzCumpyPAL2s+TmDQMvLal pCdmBKisw1T74UI4QnL0Vxzsy27DpuvByS3cwtqrSxENkAQI+I6P5gWiW0EiW9lfEmbp D8h9r556J6iR5RBHaw/eBvzLvaEoIBc/7uOrFdODSr3FCkgquiyfY3R0QKcjZFXWOXV6 6BuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=M0AnLjh+ULAFmGC+wf0mUYVp8Uo/49966bkNh7ZMHRs=; b=l2w31d7jzrCX2xCzgqIpfJpUkk3eqgslm2TebO4LuO19F5RCwrMqvQGKz5afcn3maW rIfAqoS3a91p6py3prjvhWmMwmr/5cgXxU9v5rrVd2JfH+QmbZyCO4ke+3lBdBEPSDid YWdj+fHrH0Lro8oRqzfcF2LENbfgRx32ZPx//u8shoGPqTGBpIV9zBm4E/Q/3UltQxzW 9yUQxKIqC7KEAvYEhzJ7HfJgIQmVOm1SqcPyKZVFg9b5J4A+fpbkz7KseRe/oWMYbPBD xOBskK9DMMV5nkOGym6xDat53XOTISGxgcgjVW9Qxth6vn630C5COeKmKK24T7b7AW82 T85Q== X-Gm-Message-State: APjAAAWyIDpCp6nuHy452+xbSO5NwmUafXZr0muCROOfnnVpQb8En8R0 BGxB6LFC3bhw2lnlKF81FCVQF5xLJSnQFhPMwjbE+QPBioA= X-Google-Smtp-Source: APXvYqzAnDF6PROuaW6efdedgcx5pXLNjN+7SuxM44k9CkcmWqJZ35RXCaJqkBh2iLG8itWAhPwl0apukWegJFDOc/Q= X-Received: by 2002:aa7:d299:: with SMTP id w25mr8972822edq.14.1573199773932; Thu, 07 Nov 2019 23:56:13 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::534 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121811 Archived-At: Hi, all, when I open /ssh:ser03: in emacs, it hangs with prompt: Waiting for prompts from remote shell... My setup is 1. start emacs by emacs -Q, 2. remove server ser03's .bashrc and .bash_profile is cleared. and emacs is version 26.2, tramp version is 2.3.5.26.2. I set the tramp-verbose to 10 and get the following log: 15:44:14.206923 tramp-set-connection-property (7) # process-buffer nil 15:44:14.207182 tramp-maybe-open-connection (3) # Opening connection for ser03 using ssh... 15:44:14.207512 tramp-get-connection-property (7) # login-args undef 15:44:14.207592 tramp-get-connection-property (7) # login-args undef 15:44:14.207683 tramp-get-connection-property (7) # process-name nil 15:44:14.207745 tramp-get-connection-property (7) # process-buffer nil 15:44:14.208550 tramp-set-connection-property (7) # vector (tramp-file-name ssh nil nil ser03 nil /mnt/ssd/user01/ nil) 15:44:14.208636 tramp-maybe-open-connection (6) # /bin/sh -i 15:44:14.208698 tramp-get-connection-property (7) # vector (tramp-file-name ssh nil nil ser03 nil /mnt/ssd/user01/ nil) 15:44:14.208769 tramp-get-connection-property (7) # check-remote-echo nil 15:44:14.208825 tramp-get-connection-property (7) # check-remote-echo nil 15:44:14.209513 tramp-accept-process-output (10) # *tramp/ssh ser03* run t #$ 15:44:14.209580 tramp-get-connection-property (7) # check-remote-echo nil 15:44:14.209637 tramp-get-connection-property (7) # check-remote-echo nil 15:44:14.209702 tramp-wait-for-regexp (6) # #$ 15:44:14.209770 tramp-get-connection-property (7) # login-program undef 15:44:14.209838 tramp-get-connection-property (7) # login-args undef 15:44:14.209903 tramp-get-connection-property (7) # login-env undef 15:44:14.209968 tramp-get-connection-property (7) # async-args undef 15:44:14.210030 tramp-get-connection-property (7) # connection-timeout unde= f 15:44:14.210090 tramp-get-connection-property (7) # temp-file undef 15:44:14.210201 tramp-set-connection-property (7) # temp-file /tmp/tramp.Retqm2 15:44:14.210691 tramp-maybe-open-connection (3) # Sending command =E2=80=98= exec ssh -o ControlMaster=3Dauto -o ControlPath=3D'tramp.%C' -o ControlPersist=3Dn= o -e none ser03=E2=80=99 15:44:14.210773 tramp-get-connection-property (7) # process-name nil 15:44:14.210838 tramp-get-connection-property (7) # remote-echo nil 15:44:14.210896 tramp-send-command (6) # exec ssh -o ControlMaster=3Dauto -o ControlPath=3D'tramp.%C' -o ControlPersist=3Dno -e none ser03 15:44:14.210958 tramp-get-connection-property (7) # process-name nil 15:44:14.211018 tramp-get-connection-property (7) # chunksize nil 15:44:14.211077 tramp-set-connection-property (7) # last-cmd-time (24005 7374 211060 426000) 15:44:14.211139 tramp-send-string (10) # exec ssh -o ControlMaster=3Dauto -o ControlPath=3D'tramp.%C' -o ControlPersist=3Dno -e none ser03 15:44:14.211199 tramp-get-connection-property (7) # process-buffer nil 15:44:14.211281 tramp-set-connection-property (7) # first-password-request nil 15:44:14.211480 tramp-process-actions (3) # Waiting for prompts from remote shell... 15:44:15.212739 tramp-accept-process-output (10) # *tramp/ssh ser03* run ni= l 15:44:15.212812 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell 15:44:15.212878 tramp-get-connection-property (7) # check-remote-echo nil 15:44:15.212935 tramp-get-connection-property (7) # check-remote-echo nil I notice the remote shell doesn't have any output at the following line: 15:44:15.212739 tramp-accept-process-output (10) # *tramp/ssh ser03* run ni= l But when I try to run the command: exec ssh -o ControlMaster=3Dauto -o ControlPath=3D'tramp.%C' -o ControlPersist=3Dno -e none ser03 it give the following output: Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-47-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 0 packages can be updated. 0 updates are security updates. New release '18.04.3 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Fri Nov 8 15:42:10 2019 from 192.168.1.1 What can I do to solve it? -- Best regards, Zhongwei