From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: User not detected when calling shell in remote dired Date: Wed, 17 Apr 2024 09:16:56 +0200 Message-ID: <87r0f4laqf.fsf@gmx.de> References: <0102018ee6b29e82-53295af3-c8c1-4b69-9090-0acde62232ca-000000@eu-west-1.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28073"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "help-gnu-emacs@gnu.org" To: reza Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 17 09:17:54 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 1rwzYH-00075w-WB for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 17 Apr 2024 09:17:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwzXf-0000nB-MA; Wed, 17 Apr 2024 03:17:15 -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 ) id 1rwzXc-0000mu-A3 for help-gnu-emacs@gnu.org; Wed, 17 Apr 2024 03:17:13 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwzXR-0004TW-28 for help-gnu-emacs@gnu.org; Wed, 17 Apr 2024 03:17:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1713338217; x=1713943017; i=michael.albinus@gmx.de; bh=Z+D2QA2wWyGNdQ67a9u0OiI10+q2c0ttNr6YPFdXsbg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=kRNlPT8GA3Bd3DBVCG4QYcxq8y+o+wAlbe0IqP4/KdIxJKI/cm5n6ortJdJDghb1 pwYVYxPwUNbFMn5kW8opxGTv9kKzyqag70RKUK89YEylSiejvwKBIhFPm7C+d6AGu /FuPdxCoorrSr65bnRMWDVPn1ESykQKxPz+ZrmtkXqZOifYReofHBEAOG4lWzxc81 4WGg/sR3Hos0pU/VbJ05RUAWiht5S5QN1W0aN/CacpIbn7b2IoI9QhLoWSxITDkWI L+KfxDQHu0jXjcgECON4uWm11gTxd+M60XdErJ0rv1omYTeWZFLQX84EAJrgGCGRc PgQhZuXhWn5mvQl6gg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MWzjt-1sGOzg23dB-00XJFV; Wed, 17 Apr 2024 09:16:57 +0200 In-Reply-To: <0102018ee6b29e82-53295af3-c8c1-4b69-9090-0acde62232ca-000000@eu-west-1.amazonses.com> (reza@housseini.me's message of "Tue, 16 Apr 2024 11:37:29 +0000") X-Provags-ID: V03:K1:knnGJyq3IfuEvYiND7liktRLtNDSRxWlGhsu9PU7pstAj73z5J7 9df/ECqAfrKGsF26l9oTkS/hhSl11q7i51oDQ0zkXhKt4srnGqqzKAuUPtugnNO+HZkjHY3 BhLK3dv2/ste/lvsqzcvd4veyhOyvjsOOPq7wbQnuBoG0aBaDAi1mare0c/EJAbF+zc75ry 0zFCd8zTNTA7wEMSbsq/w== UI-OutboundReport: notjunk:1;M01:P0:6Twh9CKZvH0=;5F8jXGLXbRFg0b7UdrUGUk/kvDr TbOZJM0pW0Yba/XITV31Zpg0s6ZTprE/JuMcURhVnzdYaj7haE0cExXQ415uebwmvd4zJ+yQ2 REbPZaLFCrTA+Y2/kqwapobxcAyOtx/1EdcQVhVjv6zXE+RZd1vX2UiKFg6r1TuyjfmcVVsZu VfT1J193uPy1RAXFBt+41on2+jjlSs0RVdUv06MxRACmiPvNeybHT/2O7W4re1/9CG+Le8O8D XmhhARa+SkaGCau9TErXbd/LwiMxzWK3EyrJgf6ztfFDLCI7VeQEK8sobElPAB1ao105Z/umr 1ygIoKWbbWCvY9R3CYy2TUKHOTMm8pn1fLmJdvASPDPaObzGwncotQ73E8AYwoCFzmgNcWTuM uqpRpl7PYso/u4mvj8lQ8YjmPtQ4gCF4rmNvBonQ18ctE/bbiz0U74yxHlC+hYKunXOqVGPkD wfMFCoZPd3x2/0chw6s9epGqmSd8vqf71T09FfnESB/TyEJm40eGRoDRXJMvr/LtFQ+ijoeUu uTQLBfhk+yngZPcFAvR89SBOtvozf5Lp6c4XOgPhqMVFjzsGsvy4E3rsRvMXbmvxg7dGq+iBy zwy16YXJM7o5Igu8N4gq2+B2hQvWpDQ32ZvIQ6mFFCfrHkACAezJMmb6buU2peI84Y3X1ifvV s/qL96NNL3IkoGsabtCitMoX3EaSaWnu5R1tfjWa8wRIgbWi19SLA4yFN4Ue+6LzEHWhbyb+9 6ZPB4mPE41FPAfKs8EVjHWqk6I0YltKNwsumvFMmg0cHlGXJwLKr0hjVzl/wPJQEef4DcyHu Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:146345 Archived-At: 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 =2D-8<---------------cut here---------------start------------->8--- /ssh:albinus@ubuntu-2204:~//bin/sh =2D-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.