From owner-freebsd-questions@FreeBSD.ORG Thu Jan 15 17:38:04 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2ED5558A for ; Thu, 15 Jan 2015 17:38:04 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id DEF2A3D1 for ; Thu, 15 Jan 2015 17:38:03 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 7B9E9CB8C9F; Thu, 15 Jan 2015 11:38:02 -0600 (CST) Received: from 128.135.70.2 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Thu, 15 Jan 2015 11:38:02 -0600 (CST) Message-ID: <17568.128.135.70.2.1421343482.squirrel@cosmo.uchicago.edu> In-Reply-To: References: <96FF4D20-D22E-45FE-9347-E84941D70EE8@buildingonline.com> <58385.128.135.70.2.1421339726.squirrel@cosmo.uchicago.edu> Date: Thu, 15 Jan 2015 11:38:02 -0600 (CST) Subject: Re: after freebsd-update getting undefined symbol "ssh_lowercase" From: "Valeri Galtsev" To: "Busarow Dan" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2015 17:38:04 -0000 On Thu, January 15, 2015 11:04 am, Busarow Dan wrote: > On Jan 15, 2015, at 9:35 AM, Valeri Galtsev > wrote: >> >> >> On Thu, January 15, 2015 8:54 am, Dan Busarow wrote: >>> I just ran freebsd-update install on 10 9.3-RLEASE systems. >>> >>> All but one work fine. That one is giving me the error >>> >>> /usr/bin/slogin: Undefined symbol "ssh_lowercase" >>> >>> when trying to ssh out >>> >>> Trying to connect to this machine using ssh give the error >>> >>> ssh_exchange_identification: Connection closed by remote host >>> >>> Any ideas??? >>> >> >> posting here what you get doing >> >> ssh -vvv username@host.in.question >> >> may help. >> >> Valeri > > Hi Valeri, > > Here you go. > > OpenSSH_6.6.1, OpenSSL 0.9.8za-freebsd 5 Jun 2014 > debug1: Reading configuration data /etc/ssh/ssh_config > debug2: ssh_connect: needpriv 0 > debug1: Connecting to doheny.buildingonline.net [2607:fc50:1001:8f00::10] > port 22. > debug1: Connection established. > debug3: Incorrect RSA1 identifier > debug3: Could not load "/home/dan/.ssh/id_rsa" as a RSA1 public key > debug1: identity file /home/dan/.ssh/id_rsa type 1 > debug1: identity file /home/dan/.ssh/id_rsa-cert type -1 > debug1: identity file /home/dan/.ssh/id_dsa type -1 > debug1: identity file /home/dan/.ssh/id_dsa-cert type -1 > debug1: identity file /home/dan/.ssh/id_ecdsa type -1 > debug1: identity file /home/dan/.ssh/id_ecdsa-cert type -1 > debug1: identity file /home/dan/.ssh/id_ed25519 type -1 > debug1: identity file /home/dan/.ssh/id_ed25519-cert type -1 > debug1: Enabling compatibility mode for protocol 2.0 > debug1: Local version string SSH-2.0-OpenSSH_6.6.1_hpn13v11 > FreeBSD-20140420 > ssh_exchange_identification: Connection closed by remote host > > > Note the message is the same when using IPv4, just the IP address changes. > > > On the host in question, ssh -vvv another.host gives > > OpenSSH_6.6.1, OpenSSL 0.9.8za-freebsd 5 Jun 2014 > debug 1: Reading configuration data /etc/ssh/ssh_config > /usr/bin/ssh: Undefined symbol "ssh_lowercase" > My wild guess would be that one of the libraries is ether corrupt on upgraded machine, or does not match what ssh (and sshd) were compiled against. A quick look on my machine: root@point:/usr # which ssh /usr/bin/ssh root@point:/usr # grep ssh_lowercase /usr/bin/ssh Binary file /usr/bin/ssh matches root@point:/usr # ldd /usr/bin/ssh /usr/bin/ssh: libssh.so.5 => /usr/lib/private/libssh.so.5 (0x800847000) libutil.so.9 => /lib/libutil.so.9 (0x800ad4000) libldns.so.5 => /usr/lib/private/libldns.so.5 (0x800ce6000) libgssapi.so.10 => /usr/lib/libgssapi.so.10 (0x800f42000) libcrypt.so.5 => /lib/libcrypt.so.5 (0x80114b000) libcrypto.so.7 => /lib/libcrypto.so.7 (0x80136b000) libz.so.6 => /lib/libz.so.6 (0x80175e000) libc.so.7 => /lib/libc.so.7 (0x801974000) libkrb5.so.11 => /usr/lib/libkrb5.so.11 (0x801d1d000) libhx509.so.11 => /usr/lib/libhx509.so.11 (0x801f95000) libasn1.so.11 => /usr/lib/libasn1.so.11 (0x8021df000) libcom_err.so.5 => /usr/lib/libcom_err.so.5 (0x80247c000) libmd.so.6 => /lib/libmd.so.6 (0x80267e000) libroken.so.11 => /usr/lib/libroken.so.11 (0x80288e000) libwind.so.11 => /usr/lib/libwind.so.11 (0x802aa0000) libheimbase.so.11 => /usr/lib/libheimbase.so.11 (0x802cc8000) libheimipcc.so.11 => /usr/lib/private/libheimipcc.so.11 (0x802ecc000) libthr.so.3 => /lib/libthr.so.3 (0x8030ce000) root@point:/usr # grep ssh_lowercase /usr/lib/private/libssh.so.5 Binary file /usr/lib/private/libssh.so.5 matches ...you can check all other libraries ssh linked against for the same string. These (/usr/lib/private/libssh.so.5 and others that contain that string) are the ones I would reinstall (together with ssh and sshd). Hopefully someone can pinpoint it. I just described how I would proceed... Good luck. Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++