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: User not detected when calling shell in remote dired Date: Tue, 16 Apr 2024 11:37:29 +0000 Message-ID: <0102018ee6b29e82-53295af3-c8c1-4b69-9090-0acde62232ca-000000@eu-west-1.amazonses.com> References: 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="28501"; mail-complaints-to="usenet@ciao.gmane.io" To: =?UTF-8?Q?help-gnu-emacs=40gnu=2Eorg?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 17 03:35:23 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 1rwuCo-000783-HS for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 17 Apr 2024 03:35:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwuBx-0007J2-Hs; Tue, 16 Apr 2024 21:34:29 -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 <0102018ee6b29e82-53295af3-c8c1-4b69-9090-0acde62232ca-000000@mail.housseini.me>) id 1rwh83-0003vj-Hw for help-gnu-emacs@gnu.org; Tue, 16 Apr 2024 07:37:36 -0400 Original-Received: from a2-129.smtp-out.eu-west-1.amazonses.com ([54.240.2.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from <0102018ee6b29e82-53295af3-c8c1-4b69-9090-0acde62232ca-000000@mail.housseini.me>) id 1rwh81-0000QR-UM for help-gnu-emacs@gnu.org; Tue, 16 Apr 2024 07:37:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=tsl3ypnlx3orlf3fv2rkjjc5b3u22mve; d=housseini.me; t=1713267449; h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id; bh=iQXyBibSxkoCjRdtH49ZlY6Ct8397nv2MJ29Wh6g3K4=; b=BCc/XEb9cc7pReUHbibsGrZh/1db6s1eQARjprIRIiiejM//045ZItwq48m7OhzG Br0EhP2zGmTR3NNMtftf4xVoEq0//X3FXQ2GsAqBn3CjSC+iZuGbjwLD7zyljgs+8s+ QXq6Apr9MrzvvVjk02Dp8EtEeTz+Av86tSxR/BnI= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=uku4taia5b5tsbglxyj6zym32efj7xqv; d=amazonses.com; t=1713267449; h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id:Feedback-ID; bh=iQXyBibSxkoCjRdtH49ZlY6Ct8397nv2MJ29Wh6g3K4=; b=i7Homvh4dDBU8XqMnNdPkeFDFDSV9ztnZiftHpgLCnKcYAkpNrS36wwtBUgh/gof 9itEi61iXCmFRwhYA6umimEj/I7ZBAeKhRt6dCw9Iviw64Zcn0rXWZKKmsjilJAlYgY +jOCIvry1UGTsVWOv2EW2S/O7Yq5K+KODTZjtC1o= X-Mailer: Amazon WorkMail Thread-Index: AQHaj/J1HuQuNE5zTE6WwuXi6oL3sg== Thread-Topic: User not detected when calling shell in remote dired X-Wm-Sent-Timestamp: 1713267448 Feedback-ID: 1.eu-west-1.b24dn6frgCi6dh20skzbuMRr7UL8M6Soir/3ogtEjHQ=:AmazonSES X-SES-Outgoing: 2024.04.16-54.240.2.129 Received-SPF: pass client-ip=54.240.2.129; envelope-from=0102018ee6b29e82-53295af3-c8c1-4b69-9090-0acde62232ca-000000@mail.housseini.me; helo=a2-129.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 16 Apr 2024 21:34:27 -0400 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:146343 Archived-At: Hi all 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 Remote shell path: /ssh:nil@myremote:/bin/sh and I have to manually override my user. How can I instruct emacs to pick the correct user or even pick up the user from my ~/.ssh/config file? And is there also a possibility to change the default remote shell? Thanks for any help! Best, Reza