From owner-freebsd-questions@freebsd.org Wed Nov 4 07:17:16 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD8AFA25F92 for ; Wed, 4 Nov 2015 07:17:16 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BCA8A13CA for ; Wed, 4 Nov 2015 07:17:16 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date; bh=Jf6g5+mAk8R15VzghNjNTILjz2R2yGvLNfanynVnFhA=; b=scVh gTn9df/al2H2shQZwkVxUeYYV+cQ+WfMwkHAfqIfh4Ku3GqWeT23J1QkM0Ng8idek24U/5VCFqDsO DkEOX9wezLlBs208tE/Bu1P13kKPcdwcEUaN0RAVqkKX/DoGGQ3QLrzrKQLR5+l510VEsZGyQzyzw 31l+LPKslDDsk=; Received: from [114.121.134.2] (port=51078 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.86) (envelope-from ) id 1ZtsJn-000qSz-4h for freebsd-questions@freebsd.org; Wed, 04 Nov 2015 00:17:15 -0700 Date: Wed, 4 Nov 2015 15:17:06 +0800 From: Erich Dollansky To: "freebsd-questions@freebsd.org" Subject: ssh configuration, nmisunderstanding or error Message-ID: <20151104151706.178faf7b@X220.alogt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 07:17:17 -0000 Hi, I am just setting up FreeBSD on a new hard disk but old machine. I used for testing always telnet to connect to the different jails. Now, i switched to ssh and faced this problem. The machine has the IP address i.e. 192.168.0.223, the jails has the IP address 192.168.0.18. I have had to realise that the ssh configuration file when connecting to 192.168.0.18 is taken from 192.168.0.223. This becomes even more weird as the data is kept on different file systems. Here the output: Connecting to the jail: [erich@X220]/home/erich > ssh -vvv erich@192.168.0.223 OpenSSH_6.6.1p1, OpenSSL 1.0.1p-freebsd 9 Jul 2015 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 43: Applying options for * /etc/ssh/ssh_config: line 45: Bad configuration option: main /etc/ssh/ssh_config: terminating, 1 bad configuration options Connecting to the machine itself: [erich@X220]/home/erich > ssh -vvv erich@192.168.0.18 OpenSSH_6.6.1p1, OpenSSL 1.0.1p-freebsd 9 Jul 2015 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 43: Applying options for * /etc/ssh/ssh_config: line 45: Bad configuration option: main /etc/ssh/ssh_config: terminating, 1 bad configuration options [erich@X220]/home/erich > The configuration files differ only in line 45. For 192.168.0.18 it is 'firefox stuff' while it is 'main' for the configuration file for 192.168.0.223. What do I do wrong? Erich PS uname -a FreeBSD X220.alogt.com 10.2-STABLE FreeBSD 10.2-STABLE #0 r290086M: Wed Nov 4 14:25:32 WITA 2015 erich@X220.alogt.com:/usr/obj/usr/src/sys/X220 amd64 The world in the jail is a copy of above's.