Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2015 15:17:06 +0800
From:      Erich Dollansky <erichsfreebsdlist@alogt.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   ssh configuration, nmisunderstanding or error
Message-ID:  <20151104151706.178faf7b@X220.alogt.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151104151706.178faf7b>