From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?reza?= Newsgroups: gmane.emacs.help Subject: Re: User not detected when calling shell in remote dired Date: Wed, 17 Apr 2024 09:32:27 +0000 Message-ID: <0102018eeb668208-e5ba9d63-9be0-4d84-a4bc-d8ce16ca1084-000000@eu-west-1.amazonses.com> References: <0102018ee6b29e82-53295af3-c8c1-4b69-9090-0acde62232ca-000000@eu-west-1.amazonses.com> <87r0f4laqf.fsf@gmx.de> <3b9859c8-2eec-0c03-387c-7425acb8a122@housseini.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?help-gnu-emacs=40gnu=2Eorg?= To: =?UTF-8?Q?Michael_Albinus?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 17 11:33:29 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rx1fV-0007nZ-1N for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 17 Apr 2024 11:33:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rx1eu-0000QQ-60; Wed, 17 Apr 2024 05:32:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <0102018eeb668208-e5ba9d63-9be0-4d84-a4bc-d8ce16ca1084-000000@mail.housseini.me>) id 1rx1ed-0000PS-Ua for help-gnu-emacs@gnu.org; Wed, 17 Apr 2024 05:32:43 -0400 Original-Received: from a3-44.smtp-out.eu-west-1.amazonses.com ([54.240.3.44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from <0102018eeb668208-e5ba9d63-9be0-4d84-a4bc-d8ce16ca1084-000000@mail.housseini.me>) id 1rx1eb-0003IE-0N for help-gnu-emacs@gnu.org; Wed, 17 Apr 2024 05:32:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=tsl3ypnlx3orlf3fv2rkjjc5b3u22mve; d=housseini.me; t=1713346347; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id; bh=4iiHa9uXdB98SBqVzUzR3y93n0wSXdBFQ77ZQ+2g/HQ=; b=Sj9+f1uq7PP/beCsDiOK/1zMoP36em0PV4Nv9iySwjCw5ypty6amb5rwCe2ADPvr 6dmFGgyl9g2WqaiTna9UyHQqvhBXqAYSqCJztRMClYb1ularGjId9ax3Z6pwf/Q4co+ QgJ9txEg2U0JNt85db1ikPQKhfUarnWl7R1wGpNM= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=uku4taia5b5tsbglxyj6zym32efj7xqv; d=amazonses.com; t=1713346347; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id:Feedback-ID; bh=4iiHa9uXdB98SBqVzUzR3y93n0wSXdBFQ77ZQ+2g/HQ=; b=EANRuvLJdm9+KuN4OTo+s5XQaIorsz2at36LXbOZM7hK6cljwcuYTLLq24ujYUCO SFKJQ4teXfVCwsnvTrA/LjSkTWsz8g7v3v4VLY1rg34cBj0g0YmXSQdbrrEJkTLCij0 Cg+rVJGifhQtY1FZvkKG4YOzpXSfWHvEH+Ia39fo= In-Reply-To: <87r0f4laqf.fsf@gmx.de> X-Mailer: Amazon WorkMail Thread-Index: AQHaj/J1HuQuNE5zTE6WwuXi6oL3sgApQHe3AC3s65s= Thread-Topic: User not detected when calling shell in remote dired X-Wm-Sent-Timestamp: 1713346346 Feedback-ID: 1.eu-west-1.b24dn6frgCi6dh20skzbuMRr7UL8M6Soir/3ogtEjHQ=:AmazonSES X-SES-Outgoing: 2024.04.17-54.240.3.44 Received-SPF: pass client-ip=54.240.3.44; envelope-from=0102018eeb668208-e5ba9d63-9be0-4d84-a4bc-d8ce16ca1084-000000@mail.housseini.me; helo=a3-44.smtp-out.eu-west-1.amazonses.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146346 Archived-At: Hi Michael Thanks for the pointers. I also could not reproduce the issue with emacs -Q. After disabling most of my config I found the culprit to be some helm configuration. It also made the whole tramp experience kind of sluggish. Therefore I disabled helm completely and am now blown away by the speed! Thanks a lot! Best, Reza On 4/17/24 09:16, Michael Albinus wrote: > reza writes: > >> Hi all > > Hi Reza, > >> When I open a remote folder with dired C-x d /ssh:myuser@myremote and >> call M-x shell there, emacs displays in the minibuffer > > I guess you mean "/ssh:myuser@myremote:", with the trailing colon. > >> Remote shell path: /ssh:nil@myremote:/bin/sh >> >> and I have to manually override my user. > > I cannot reproduce it. I've opened "/ssh:albinus@ubuntu-2204:". When I > call 'M-x shell', Emacs offers me in the minibuffer > > --8<---------------cut here---------------start------------->8--- > /ssh:albinus@ubuntu-2204:~//bin/sh > --8<---------------cut here---------------end--------------->8--- > > which is fine. What Emacs and Tramp versions are you using? I've > performed my tests with Emacs 30.0.50 and Tramp 2.1.7-pre. > > Could you try to reproduce the problem after starting "emacs -Q"? > >> How can I instruct emacs to pick the correct user or even pick up the >> user from my ~/.ssh/config file? > > When the user is given in ~/.ssh/config, you don't need to specify > it. Just open "/ssh:myremote:". > >> And is there also a possibility to change the default remote shell? > > Set explicit-shell-file-name to a proper value. > >> Thanks for any help! >> >> Best, >> Reza > > Best regards, Michael.