zsh-workers
 help / color / mirror / code / Atom feed
From: Bruno Bazille <bruno@bazille.fr>
To: dana <dana@dana.is>
Cc: zsh-workers@zsh.org
Subject: Re: ssh completion on Catalina
Date: Thu, 31 Oct 2019 14:53:13 +0100	[thread overview]
Message-ID: <133D8C86-35E6-4D59-B3B0-4FE127C5A941@bazille.fr> (raw)
In-Reply-To: <9D79F715-1AC2-42C9-B29D-3D26693F44B9@dana.is>

[-- Attachment #1: Type: text/plain, Size: 3399 bytes --]

Hi Dana

I thank you for your quick reply and I apologize for my delay (Vacation period in France)

Previously Mojave was installed, the very last version
Zsh version, no sorry, but I performed a brew upgrade recently
Now, Zsh 5.7.1 is installed
No specific configuration was done.

I agree your analyse : stuck in loop

I performed your recommendations.

ssh bar<Ctrl+x ?>
<Ctrl+C>
I got a file, unfortunalty I’m not able to understand it…
I see the list of server from my .ssh/config.d/hosts
I see sort of loop

Then I tried again and wait longer and… completion works after 4/5 seconds
Same with the traditional <tab>

I removed the bind key (bindkey -r '^x?’)
<tab> works with few seconds delay

What can I bring you as input ?
Strange that the completion spends more time than Mojave env.
I don’t know which programming language is used, but i seems the interpreter is less quicker in this case.

I apply the very last Catalina release (2 day ago), there are a lot of small mistake with Catalina, so I guest each new version will fix these « bugs ».
I perform also a brew upgrade too.
No solved my issue.

So it is not really a problem, but I manage hundreds of servers, the ssh command is my hourly tool…
For instance, I have 45 having « multi »	in their name.

%> ssh multi<tab> takes 8 seconds to complete the real root name of these 45 servers.
<tab> again to have the complete list of them, to select the one I want to connect with right arrow, is again few seconds.

As I tell you in my 1st mail, if I specify the first characters of server name such as in my case ssh vmmulti, the completion is immediate and the next tab is also immediate.
As 90% of the server names start by « vm », now I write these 2 chars in my ssh command to go faster. In Mojave env, no.

Regards,
Bruno


> Le 23 oct. 2019 à 11:36, dana <dana@dana.is> a écrit :
> 
> On 21 Oct 2019, at 02:41, Bruno Bazille <bruno@bazille.fr> wrote:
>> I installed the last macOS version : 10.15
>> I’m using iTerm2
>> brew upgrade has been performed
> 
> Were you previously on Mojave, and it worked there? Do you know what version
> of zsh you were using there, and which one you're using on Catalina? And you
> didn't change anything else about your zsh or SSH configuration?
> 
> On 21 Oct 2019, at 02:41, Bruno Bazille <bruno@bazille.fr> wrote:
>> When I want to connect one of my server here below the completion issue :
>> The server name I want to reach is vmbar (note all my server names start by vm)
>> 
>> %> ssh bar<tab>
>> ==> completion seems blocked
> 
> This will probably be weird because it's getting stuck in a loop, but you can
> try this. First, run the following:
> 
>  bindkey '^x?' _complete_debug
> 
> Then, enter the problematic command to complete like you were doing before,
> but instead of pressing Tab, press Ctrl+X followed immediately by ? (question
> mark).
> 
> After it gets stuck, give it a second or two, then press Ctrl+C again to abort
> it. It should dump a trace file, but since you cancelled it you'll have to
> find it yourself. Try:
> 
>  ls $TMPPREFIX*(.)
> 
> Hopefully there'll be a file like zsh1234ssh1. If so, review it for any
> sensitive information (since it's SSH hosts it may contain servers/IPs),
> censor if necessary, and then attach the file here
> 
> dana
> 


  reply	other threads:[~2019-10-31 13:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21  7:41 Bruno Bazille
2019-10-23  9:36 ` dana
2019-10-31 13:53   ` Bruno Bazille [this message]
2019-10-31 14:01     ` Bruno Bazille
2019-10-31 23:30       ` dana

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=133D8C86-35E6-4D59-B3B0-4FE127C5A941@bazille.fr \
    --to=bruno@bazille.fr \
    --cc=dana@dana.is \
    --cc=zsh-workers@zsh.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).