Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ssh problem : half-solved
Date: Mon, 11 Mar 2019 13:42:30
Message-Id: 20190311134214.768b3460@digimed.co.uk
In Reply to: Re: [gentoo-user] Ssh problem : half-solved by Philip Webb
1 On Mon, 11 Mar 2019 09:08:14 -0400, Philip Webb wrote:
2
3 > 190311 Neil Bothwick wrote:
4 > > Have you run ssh with -v
5 > > to see what configuration options it is reading from where.
6 > > Bear in mind that ssh stops at the first matching host definition,
7 > > so if you have a "host *" in your config, it must be last.
8 >
9 > This is what I get :
10 >
11 > 522: ~> ssh -v <URL>
12 > OpenSSH_7.9p1, OpenSSL 1.0.2r 26 Feb 2019
13 > debug1: Reading configuration data /home/purslow/.ssh/config
14 > debug1: Reading configuration data /etc/ssh/ssh_config
15 > debug1: Connecting to <URL> <IP> port 22.
16 > debug1: Connection established.
17 > debug1: identity file /home/purslow/.ssh/id_rsa type -1
18 > debug1: identity file /home/purslow/.ssh/id_rsa-cert type -1
19 > debug1: identity file /home/purslow/.ssh/id_dsa type -1
20 > debug1: identity file /home/purslow/.ssh/id_dsa-cert type -1
21 > debug1: identity file /home/purslow/.ssh/id_ecdsa type -1
22 > debug1: identity file /home/purslow/.ssh/id_ecdsa-cert type -1
23 > debug1: identity file /home/purslow/.ssh/id_ed25519 type -1
24 > debug1: identity file /home/purslow/.ssh/id_ed25519-cert type -1
25 > debug1: identity file /home/purslow/.ssh/id_xmss type -1
26 > debug1: identity file /home/purslow/.ssh/id_xmss-cert type -1
27 > debug1: Local version string SSH-2.0-OpenSSH_7.9
28 > debug1: Remote protocol version 2.0, remote software version
29 > OpenSSH_3.7.1p2 debug1: match: OpenSSH_3.7.1p2 pat OpenSSH_3.* compat
30 > 0x01000002 debug1: Authenticating to <URL>:22 as 'purslow'
31 > debug1: SSH2_MSG_KEXINIT sent
32 > debug1: SSH2_MSG_KEXINIT received
33 > debug1: kex: algorithm: (no match)
34 > Unable to negotiate with <IP> port 22: no matching key exchange
35 > method found. Their offer:
36 > diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
37 >
38 > Is that any help ?
39
40 It shows that ssh is reading your config file, but not picking up the
41 options for this host. I would expect to see something like
42
43 debug1: Reading configuration data /home/nelz/.config/ssh
44 debug1: /home/nelz/.config/ssh line N: Applying options for <HOST>
45
46 Do you have any other Host stanzas in the config?
47
48
49 --
50 Neil Bothwick
51
52 Make it idiot proof and someone will make a better idiot.

Replies

Subject Author
Re: [gentoo-user] Ssh problem : half-solved Mick <michaelkintzios@×××××.com>