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.bugs Subject: bug#63359: 30.0.50; Lack of ssh hosts completion in Tramp using Fido mode Date: Mon, 08 May 2023 13:08:10 +0200 Message-ID: <87ednraxnp.fsf@gmx.de> References: <87zg6g2hed.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38002"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63359@debbugs.gnu.org To: Bartosz =?UTF-8?Q?Kaczy=C5=84ski?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 08 13:09:30 2023 Return-path: Envelope-to: geb-bug-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 1pvykE-0009ki-At for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 May 2023 13:09:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvyjn-0008Jl-VE; Mon, 08 May 2023 07:09:03 -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 1pvyjn-0008JX-1K for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 07:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvyjm-000817-6z for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 07:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvyjl-0006pJ-Kl for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 07:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 May 2023 11:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63359 X-GNU-PR-Package: emacs Original-Received: via spool by 63359-submit@debbugs.gnu.org id=B63359.168354410226188 (code B ref 63359); Mon, 08 May 2023 11:09:01 +0000 Original-Received: (at 63359) by debbugs.gnu.org; 8 May 2023 11:08:22 +0000 Original-Received: from localhost ([127.0.0.1]:39426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvyj7-0006oK-Mv for submit@debbugs.gnu.org; Mon, 08 May 2023 07:08:22 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:51091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvyj4-0006o3-TT for 63359@debbugs.gnu.org; Mon, 08 May 2023 07:08:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683544091; i=michael.albinus@gmx.de; bh=D69c6JxiQ8Ez8Y3ls169D4jzvHNbxCKHu2OR90kp+mE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=lwdP3cvMw0hy5yKAYYvejqORIrwehwqlOtG5MOHdapa1sMbEZs4rEfm3HpVyBTSiz C0oCt3JgzGiimS7gVfFEVF5mPCtfvQqQ7KEPuS3PvEzovsUkrli4hD0lf7rcvShWNM 1YSDTtXX4eTliWVumTjDCUKQt0gdDk+dVeqIOteu3tggozOdu4Py2pcm4Vp3FcPFZL kSHGg3Id9SHJht30Zt+Ktj96phzLznxQ523XGBJ9kW/RXt1D2QjoT8DtOF0oId8rpH XzYPNH69m6qTFYT9edbD0w84nW+z57uTT6D4WqhfymKbyc+K5JQ+ISn6uQBk/ygjZY qIXb0JRcMiPTQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.0]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M6UZv-1ppd3q1Re5-006zFM; Mon, 08 May 2023 13:08:11 +0200 In-Reply-To: <87zg6g2hed.fsf@posteo.net> ("Bartosz =?UTF-8?Q?Kaczy=C5=84ski?="'s message of "Sun, 07 May 2023 17:14:18 +0000") X-Provags-ID: V03:K1:k2SqP+n8+MzB1946P7eqV98+LFJ8YpccYKhdoNRKjrkbCxJqmCn zO91UcJgphayrxDCnzporerIm4Yyso7B+i3CGU+yi0nxUXsEhbVY8StEO8oSKOtA9qcQ0q7 clseC5vyCakTuCT5r1UNAP1QJpDzt3XfxBuVCi0zf+pZuVRSSvABfQp9LS9fFbZvNj7O/k8 AFk55ZumugAtC7wKvmWQw== UI-OutboundReport: notjunk:1;M01:P0:C9JyIXnW1Ts=;OCv7a0sLRQIjt4B0dMwkqLE1Ngx OluIUr8sceT0J0CCzWDEB23f9h7GdIlCBXKl2X7pnmoHeFiqA9zsEGIBupdppBCegX1/QXJ3w DjCong/4LxJFbE5dO5aLY80/aZy5kaYTCQG4h5epMRxnspVU517Rt8P0SAsKJi8y8Rrn7raju 5szipnqvYfT2DDh/NP+mZ13q/SXCRP0kbZ5Ac9CpDTuSKcUkUwvKqHguxwBKgPUd4f5CGBfpE 417D6yia/1HM7td5jz8yar/627Fldz1EJHKiQSFwBqK2AlDoleTShv4ZV6vVPPyb1dZLmQLhi PliTvIwrpFbrZRTjx5CuqRs24xwY367sfvngUentPo9Fb0cSRR48hl+3P/G6vaYGw461jQv/1 Tjj9wks7q2PVSUpiKkWYNluMwD/8ELuGOM1bcfleJUw6h6OOKNURAdPpOu5AIj9vOCgfxDO6b vWP01uLXNwGEgjPotbvwEDzpXZWG2lKppWdhj7RLa9IR92yPgesFRj75r7fPcy46vZ4Dum3m0 bXLeDJhGsC7ankx4N+tpcUjJeJFhD3Bf5342U8xbl3wIHd4lypWlBVe0CSU0G7Krfi2lISJdY onSxKxj4zB3m56dhWFPTjwoLaHEEB4h3I1xdpzEj/w2r3vbGOmmBtaiMCvituHcKsLnWUBH2l QVoTk58mS++kaPZy+hA+UbLUbEfCyJx9C/aCGGfHtjWYxSiaJAv9GzC8AdrrUvUTd+W9UQfKb 6bhC4FSuyDsA0RpMl2aIXQunI6UWm+cOKCyic1O0QcbjVqngeAgFfuDeWe9wb9O+xSkj9Ycw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261304 Archived-At: Bartosz Kaczy=C5=84ski writes: > Hi, Hi Bartosz, > I would like to report an issue with the lack of SSH hostname > suggestions when connecting via Tramp using the Fido mode. Previously, I > used the exact same configuration in the Icomplete mode and the > completion worked, meaning I could do C-x C-f, start typing /ssh: , > and it would suggest a list of hosts defined in the configuration file. > > I keep my connection in following structure: > > tree ~/.ssh/conf.d/ > .ssh/conf.d/ > =E2=94=9C=E2=94=80=E2=94=80 lab > =E2=94=9C=E2=94=80=E2=94=80 personal > =E2=94=9C=E2=94=80=E2=94=80 companyX > =E2=94=94=E2=94=80=E2=94=80 companyY > > and following line in ~/.ssh/config: > > Include conf.d/* > > My fido-mode configuration: > > (use-package icomplete > :config > (fido-mode t) > (fido-vertical-mode t))=20=20 I cannot say why/how it worked for you in the past. But the Tramp manual discusses this case: --8<---------------cut here---------------start------------->8--- 4.18.1 Using ssh config include for host name completion -------------------------------------------------------- OpenSSH configuration files can use an =E2=80=98Include=E2=80=99 option for= further configuration files. Default TRAMP host name completion ignores this option. However, you can configure this yourself. Given, your =E2=80=98~/.ssh/config=E2=80=99 file contains the following = option: Include ~/.ssh/conf.d/* The following code snippet in your =E2=80=98.emacs=E2=80=99 uses all fil= es in that directory for host name completion: (tramp-set-completion-function "ssh" (append (tramp-get-completion-function "ssh") (mapcar (lambda (file) `(tramp-parse-sconfig ,file)) (directory-files "~/.ssh/conf.d/" 'full directory-files-no-dot-files-regexp)))) This code snippet does it for the =E2=80=98ssh=E2=80=99 method. If you = replace "ssh" by "scp", it does it also for that method (or any other method you like). --8<---------------cut here---------------end--------------->8--- Have you tried this recipe? > Thank you in advance for your help! > bartk Best regards, Michael.