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 06C50138334 for ; Mon, 11 Mar 2019 13:42:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB677E0BEF; Mon, 11 Mar 2019 13:42:21 +0000 (UTC) Received: from smarthost01c.mail.zen.net.uk (smarthost01c.mail.zen.net.uk [212.23.1.5]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33899E0948 for ; Mon, 11 Mar 2019 13:42:21 +0000 (UTC) Received: from [82.69.83.178] (helo=mail.digimed.co.uk) by smarthost01c.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1h3LC7-00046m-Kx for gentoo-user@lists.gentoo.org; Mon, 11 Mar 2019 13:42:19 +0000 Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id 0DCCB65D3B for ; Mon, 11 Mar 2019 13:42:19 +0000 (GMT) Date: Mon, 11 Mar 2019 13:42:14 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Ssh problem : half-solved Message-ID: <20190311134214.768b3460@digimed.co.uk> In-Reply-To: <20190311130814.GE1934@ca.inter.net> References: <20190310072554.GD1945@ca.inter.net> <20190311054119.GA1934@ca.inter.net> <20190311083133.5085f17e@digimed.co.uk> <5754419.A2fIWcm9iI@dell_xps> <20190311090850.32700140@digimed.co.uk> <20190311092336.GB1934@ca.inter.net> <20190311100005.474b47ad@digimed.co.uk> <20190311130814.GE1934@ca.inter.net> Organization: Digital Media Production X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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; micalg=pgp-sha256; boundary="Sig_/ZkZv/WUrsYJqhBMEJUdTkDg"; protocol="application/pgp-signature" X-Originating-smarthost01c-IP: [82.69.83.178] Feedback-ID: 82.69.83.178 X-Archives-Salt: cd1e96a2-f24e-489e-89e9-eb251ca33442 X-Archives-Hash: 6975b5b587cff1b9a7e9a4aec9d15e78 --Sig_/ZkZv/WUrsYJqhBMEJUdTkDg Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 11 Mar 2019 09:08:14 -0400, Philip Webb wrote: > 190311 Neil Bothwick wrote: > > Have you run ssh with -v > > to see what configuration options it is reading from where. > > Bear in mind that ssh stops at the first matching host definition, > > so if you have a "host *" in your config, it must be last. =20 >=20 > This is what I get : >=20 > 522: ~> ssh -v > OpenSSH_7.9p1, OpenSSL 1.0.2r 26 Feb 2019 > debug1: Reading configuration data /home/purslow/.ssh/config > debug1: Reading configuration data /etc/ssh/ssh_config > debug1: Connecting to port 22. > debug1: Connection established. > debug1: identity file /home/purslow/.ssh/id_rsa type -1 > debug1: identity file /home/purslow/.ssh/id_rsa-cert type -1 > debug1: identity file /home/purslow/.ssh/id_dsa type -1 > debug1: identity file /home/purslow/.ssh/id_dsa-cert type -1 > debug1: identity file /home/purslow/.ssh/id_ecdsa type -1 > debug1: identity file /home/purslow/.ssh/id_ecdsa-cert type -1 > debug1: identity file /home/purslow/.ssh/id_ed25519 type -1 > debug1: identity file /home/purslow/.ssh/id_ed25519-cert type -1 > debug1: identity file /home/purslow/.ssh/id_xmss type -1 > debug1: identity file /home/purslow/.ssh/id_xmss-cert type -1 > debug1: Local version string SSH-2.0-OpenSSH_7.9 > debug1: Remote protocol version 2.0, remote software version > OpenSSH_3.7.1p2 debug1: match: OpenSSH_3.7.1p2 pat OpenSSH_3.* compat > 0x01000002 debug1: Authenticating to :22 as 'purslow' > debug1: SSH2_MSG_KEXINIT sent > debug1: SSH2_MSG_KEXINIT received > debug1: kex: algorithm: (no match) > Unable to negotiate with port 22: no matching key exchange > method found. Their offer: > diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 >=20 > Is that any help ? It shows that ssh is reading your config file, but not picking up the options for this host. I would expect to see something like debug1: Reading configuration data /home/nelz/.config/ssh debug1: /home/nelz/.config/ssh line N: Applying options for Do you have any other Host stanzas in the config? --=20 Neil Bothwick Make it idiot proof and someone will make a better idiot. --Sig_/ZkZv/WUrsYJqhBMEJUdTkDg Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEGfLZTV7dXdQXh/dDdCdyyQfftocFAlyGZbYACgkQdCdyyQff toeyfQ/+K41cCFIDrtGk7TK9OiM+iMGqRbvl9IacXSQZOBJe8g7iqbbDAUC5AIvG yJuRrORSxkShkpWt3Ixd2lbKa8gOWjYFynyT3mtOOhfYM9t3gVZ+1VPVWxdL4rwt le37T9wNVsVxaHQJw5vFuk1BVqSfHVpiN81v+9naQ6vyDuvdCm6Dq5g5Ekm/GRgN AItddnFvBEk6QRn/+3N4ZLfehAEO608mXFC9ALXdFB0/b47RTxtJcIjmil6PBoS5 4qpD9osUKNIj/F0WCk+zzszGON67OKgX0wvO8qTXiScaWL3VJO58PbrFzZ77n0eG dIuaxNNCqQ00QzPC8VfQcGrkXQSQNmjISXLp6+u641TZ0wAIy6YQcsD9nBb6yQON BOcoHEtIDVIbIndr0//hFAcvyhLollrIeOG7i8Z3nKRCpgDoRuda/81CDJAa6LBm 4u5QXofme/L3RiCYlrUyYg8sKmgbnrMEkAG+JTPjEZ6ZIjxnvy8hN+Tz2uqGNLj2 4yEjZ9KtGTEaNTIQL3ferQYcy5ZAoOi5Nz4WHqbUyXiaeo0x22xQg1xp6cScKtmF pZH8hTOuWiEqupaWlr80HQahGTVeRsGCvDVSSY0XC5jhPohKTE2zME4eP095598T fZ+PYKaPl2cSs8G5c+GebggAfstfPkCK6QaetAqVAJ2Fa1l7jkM= =Vysd -----END PGP SIGNATURE----- --Sig_/ZkZv/WUrsYJqhBMEJUdTkDg--