From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 033E5138239 for ; Tue, 12 Mar 2019 16:59:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0534AE098A; Tue, 12 Mar 2019 16:59:47 +0000 (UTC) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 61BD9E094F for ; Tue, 12 Mar 2019 16:59:46 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id 33so1012414wrb.13 for ; Tue, 12 Mar 2019 09:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:reply-to:subject:date:message-id:in-reply-to:references :mime-version; bh=KeeYt9Rf4ilU9ok2mkgCpYbOcEvQm813f5ZC4pFeNno=; b=QJnEru+vILIvU5cF/W4yO5BXsuxn7A3mkt+d1r7UpuViJ2unc2J2+Yhu+9WKQUzl8P XHOqYicEiGCjTx5iUjNRWalLEgjmeubzUjp4RwznQ6HB/Duwk+1yPMHpvqqTL+EXPbZc VQJ+N2h1EoiWyWCLQRF5ygeRiL9FoGwYSomBV4+JAZ0wOJY3HGzwgX8mCWCgBaRo6H+Y 6TBckaDLLp6+xS1P/A2GMlqzl7Y+TOkSmMaaSqlwac1pqIuiX3EVgMwHExp3o94sSp4L g2eNseT7uvsDVfyYcGb4PNcbnsj+6f0VC7QknDE+R3I/9TIDI/S89Q3AC51Q5Ti+2mGk PUww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:reply-to:subject:date:message-id :in-reply-to:references:mime-version; bh=KeeYt9Rf4ilU9ok2mkgCpYbOcEvQm813f5ZC4pFeNno=; b=YU+IB2ddRpjcNYtGoYtkIpTNR1lktmH0ilAaNA/dS98xTrv1CGZnPkc8H4CekvNKew F/D8fi0MB93au56gGg33Lexima7VgvPdDNP/EkN8kdx72lUlujF32BHAObCfk7pohGOz dBsf4QETdOOXYgcdQM7/K6u4+nJX0NE+6T2LmRmmbkbcbln09Yq+/n4YSdFzjk8+iP06 ZhOXclfjLLcgzWY/ReDxwCm9enbue98oMbwDv8hhf6+6z7qHBu99TGIXSKXWkOEc8Lks D0y7l/sAsutxSPEJWgLyULHMAbPjkIkQbDBshzjna9JaVqdP8TLVmGC8ue1PjLtwnb7I uCQA== X-Gm-Message-State: APjAAAXsp9JEflN9eWIMAveyJDUPPPDFIVAAvqqeIAdGNT7k0RGEbBVM 9AtXE4ebDsuRFDbAF5e/uHRLHE5S X-Google-Smtp-Source: APXvYqzgiBkwW+5zB8bOm390R26RMOVJw2rPSsBycaehiC1Env5CFAjLM83h5dEsPdWrcPqo1IZfYA== X-Received: by 2002:a5d:468d:: with SMTP id u13mr2000599wrq.132.1552409984598; Tue, 12 Mar 2019 09:59:44 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id n130sm3921305wma.48.2019.03.12.09.59.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2019 09:59:43 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Ssh problem : solved but weird Date: Tue, 12 Mar 2019 16:59:26 +0000 Message-ID: <2298260.f2ncSUg37b@dell_xps> In-Reply-To: <11424E4F-478A-4BD1-AEAB-C0AD1513A59E@stfw.net> References: <20190310072554.GD1945@ca.inter.net> <20190312151024.GS1934@ca.inter.net> <11424E4F-478A-4BD1-AEAB-C0AD1513A59E@stfw.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2728714.uzNaxecK7E"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: a5e7398f-caa1-4935-ba34-cd4e39d16596 X-Archives-Hash: 242272ecf52060129768869d5bde7da0 --nextPart2728714.uzNaxecK7E Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" On Tuesday, 12 March 2019 15:12:46 GMT Neil Bothwick wrote: > On 12 March 2019 15:10:24 GMT, Philip Webb wrote: > >190312 Philip Webb wrote: > >> Progress, but still a puzzle. I commented the lines in /etc/... > >> & when I use the IP, not the URL, the connection goes thro' ; Good, we're getting somewhere. :-) > >> when I use the URL, it still doesn't. Here's the output : > > ... skip ... > > > >> So why does IP vs URL make a difference ?? Because the config file is parsed and used as a literal match against whatever you type on the CLI. So, if you specify an IP address it will use the corresponding settings for this IP address only. > >Thanks to Nuno Silva : it seems to use only the URL or IP, > >depending on which you specify in the config file. > >When I copy the 2 lines, but substitute the URL for the IP, > >the command also goes thro' properly. Right, that's how it is meant to work. A literal match against what you type on the CLI. > Give both the address and URL on the Host line. Yes, Neil's suggestion will work, i.e. specify all potential Host invocations separated by white space on the Host line. Alternatively, you can still have the IP address as Host, but then set the URL as hostname, e.g.: Host 123.456.78.9 hostname example.com User my_username IdentityFile /home/user/.ssh/id_rsa KexAlgorithms +diffie-hellman-group1-sha1 I expect the above may fail if/when the IP address changes, but if nothing else it will give you reason to investigate what may be happening. -- Regards, Mick --nextPart2728714.uzNaxecK7E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEt7MNaGaS6HvTUrEz6WnU8jC95dcFAlyH5W4ACgkQ6WnU8jC9 5ddzvQ//btbjguoohEp2oi1vBouTT6R06ACSPphuc39dwtr9iGni0754sexirJyH 9TgVgdGD0CS/7VF0W+q94DAedWQ6KPH4WqX1SSTm5eaCUupE0mk1+n9xfXV5ZjW8 ohkEIDPX9AcHThz9KU9oQbGjagoMCLwzO6DWJ+bafoN27+F4OwuaavDIj21xTAkt 7nAB2RMLaeYiZbVhjOVGlPxFZf0deqXasnTIEWFMOj7M8RpXRRZNAdNVJvXRWnoa XWl9K5H6Qzsbz7ZjwzAunLXGG1VdXwUoZBqsQzqjTqMa/CMg6jyAJ+2t2nQ2/Lpd JBrKh3sZEUAE7TcsOUj1KxP6KH2/fgrjqkkYC5uMDRyQaOyNsxJG22f7X5IdEXan pgjqLuVxg0D9hKQNWAe5DB8hEGl79LP8fxWaKbvjiNJIZHHYdem/n2bMIo8JCS3+ r0cfT1V6LhspYJvQjb0c1vlrD1DwmxraZbCQostsuehdhEPoFpcF18jjOtSDRzrV Vj2/4wKzdMKuQ7vkytu6VLTBZpFzisbpyotIu4AHucubGclt1ad9+Ra3p6gcV4pD pk0icGeZ2pY3g3rv4FbEpZS9kxWwwdKB5e4jJQJED81joHxwpDC8posyFXKPyqxg REve7YA3NjzABF+zINMeZJ6d6XLYkx3araixWmScwWfw9szXTzg= =ohtd -----END PGP SIGNATURE----- --nextPart2728714.uzNaxecK7E--