From: reza <reza@housseini.me>
To: "Michael Albinus" <michael.albinus@gmx.de>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: User not detected when calling shell in remote dired
Date: Wed, 17 Apr 2024 09:32:27 +0000 [thread overview]
Message-ID: <0102018eeb668208-e5ba9d63-9be0-4d84-a4bc-d8ce16ca1084-000000@eu-west-1.amazonses.com> (raw)
In-Reply-To: <87r0f4laqf.fsf@gmx.de>
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 <reza@housseini.me> 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.
prev parent reply other threads:[~2024-04-17 9:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d1fced84-f0a7-a893-fb95-36f6b3b3a03e@housseini.me>
2024-04-16 11:37 ` User not detected when calling shell in remote dired reza
2024-04-17 7:16 ` Michael Albinus
[not found] ` <3b9859c8-2eec-0c03-387c-7425acb8a122@housseini.me>
2024-04-17 9:32 ` reza [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0102018eeb668208-e5ba9d63-9be0-4d84-a4bc-d8ce16ca1084-000000@eu-west-1.amazonses.com \
--to=reza@housseini.me \
--cc=help-gnu-emacs@gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).