unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* User not detected when calling shell in remote dired
       [not found] <d1fced84-f0a7-a893-fb95-36f6b3b3a03e@housseini.me>
@ 2024-04-16 11:37 ` reza
  2024-04-17  7:16   ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: reza @ 2024-04-16 11:37 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: User not detected when calling shell in remote dired
  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>
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2024-04-17  7:16 UTC (permalink / raw)
  To: reza; +Cc: help-gnu-emacs@gnu.org

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: User not detected when calling shell in remote dired
       [not found]     ` <3b9859c8-2eec-0c03-387c-7425acb8a122@housseini.me>
@ 2024-04-17  9:32       ` reza
  0 siblings, 0 replies; 3+ messages in thread
From: reza @ 2024-04-17  9:32 UTC (permalink / raw)
  To: Michael Albinus; +Cc: help-gnu-emacs@gnu.org

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-17  9:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [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 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).