From owner-freebsd-questions@freebsd.org Thu Nov 7 21:31:19 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B282117A493 for ; Thu, 7 Nov 2019 21:31:19 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478Gmk5rZYz4PCl for ; Thu, 7 Nov 2019 21:31:18 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-qt1-x832.google.com with SMTP id o11so4010077qtr.11 for ; Thu, 07 Nov 2019 13:31:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=beU67iJFz6KOJ6FUFycjFaZyu7FCPVpgA0YNvwAPFps=; b=ZWGiV0HXP9lk8k586424rbU0I1TcIzO3BGky4Th+WFlDt4lxfaCLr5wQBlchtkNt9A KiPARkrrLpnMq0wkIix/Qdm68BEHnK8jsopNn5Ajrg47xYFdfhePM71I2sFQlXnX68kc zL3kx/HLiGWggMialM5YLllfDKrg0ZcPOzPoJrwmD/SB4ZZ6yllqb9CM5O5yCk0xjXyF Ko9ANh43T8qpXsgj1dXv+la2S4XqB60JFPbioygQipcTwMa+ZmAPM99ADrTIZcSyQR3Y 9dviQX5evNkJDsDhDVRc3Fb63qXzH4kc5T+PSM1hIeU4JtshsPy9PHHbUr0XuBXuQwkf eFMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=beU67iJFz6KOJ6FUFycjFaZyu7FCPVpgA0YNvwAPFps=; b=GdYroAJlN8RIzqstthuVx4/3PZ9kKH0+I39eaue1Mmi0YAqua2J0j5MG7mo4x5mBsg QipFICi2IM51nsxnnVSGt8Dlke+sgT2kaAiqkO3XJ6GKQevi046niFGSWwwU9wFPp1J9 PdtTduSawhTwwCXv03D/02VryotkO9SzXomMpDDlcvlQInB6aQiORqA9WjbtFwWzKsUh 0H/4MT1OAvBOL2MvJUeZDsF+RswxmYC4DazBNiALP6CJLUS6/GV9r1dGHJ3HN+spSJ1f lQoRiwnZO6TgS2l6wD1TYOnbs5o1aaS2ZAaQODtGoEN8DTc4cmQaPRsCjyX0zJDj5G9A J5hQ== X-Gm-Message-State: APjAAAWVNbfVvyvAk81hCOoLqre5HHXgTa36zyQ6ZzEnJ/psbD8rv8TG RKZpO5kwbFfR4oAptlI2kVagwraYteNQStdB5dsAZHNpfatobg== X-Google-Smtp-Source: APXvYqyVOIcXAL+cdc4ZTmY/XYDs1xU4+gcS2Gq+wbYraF4ffz9O+B9RZYR4txpEmYDboJDzp3esduxTl702u40Up3g= X-Received: by 2002:aed:27da:: with SMTP id m26mr6506197qtg.138.1573162277456; Thu, 07 Nov 2019 13:31:17 -0800 (PST) MIME-Version: 1.0 References: <373c4623-d68b-7097-c532-288089df770a@bluerosetech.com> In-Reply-To: <373c4623-d68b-7097-c532-288089df770a@bluerosetech.com> From: Michael Sierchio Date: Thu, 7 Nov 2019 13:30:41 -0800 Message-ID: Subject: Re: Change openssh private key order To: Mel Pilgrim Cc: FreeBSD Mailing List X-Rspamd-Queue-Id: 478Gmk5rZYz4PCl X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tenebras-com.20150623.gappssmtp.com header.s=20150623 header.b=ZWGiV0HX; dmarc=none; spf=none (mx1.freebsd.org: domain of kudzu@tenebras.com has no SPF policy when checking 2607:f8b0:4864:20::832) smtp.mailfrom=kudzu@tenebras.com X-Spamd-Result: default: False [-4.06 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[tenebras-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[tenebras.com]; URI_COUNT_ODD(1.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[tenebras-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.76)[ip: (-9.37), ipnet: 2607:f8b0::/32(-2.35), asn: 15169(-2.01), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 21:31:19 -0000 How many keys? You can run multiple agents for different hosts or host patterns in ~/.ssh/config, and specify IdentityAgent /root/.ssh/S.ssh-agent.ed25519.key for each On Thu, Nov 7, 2019 at 12:03 PM Mel Pilgrim wrote: > I have rsa keys and an ed25519 keys. They're both made available via an > ssh-agent. All keys are in the authorized_keys files of the servers in > question except for a few legacy cases that only have the rsa keys due > to lacking ed25519 support. > > I want the connections to prefer the ed25519 keys over the rsa keys, but > looking at debug output, the RSA keys are always tried first. > > Is it possible to change the order of precedence for private keys? If > so, what option do I set? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > --=20 "Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is = no wiser, but an intelligent person requires only two thousand five hundred." - The Mah=C4=81bh=C4=81rata