From owner-freebsd-questions Sun Sep 20 12:35:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA22272 for freebsd-questions-outgoing; Sun, 20 Sep 1998 12:35:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gras-varg.worldgate.com (gras-varg.worldgate.com [198.161.84.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA22226 for ; Sun, 20 Sep 1998 12:35:10 -0700 (PDT) (envelope-from skafte@gras-varg.worldgate.com) Received: (from skafte@localhost) by gras-varg.worldgate.com (8.9.1a/8.9.1) id NAA12125; Sun, 20 Sep 1998 13:34:39 -0600 (MDT) Message-ID: <19980920133438.B11613@worldgate.com> Date: Sun, 20 Sep 1998 13:34:38 -0600 From: Greg Skafte To: Randy Bush , freebsd-questions@FreeBSD.ORG Subject: Re: tcpd and ssh X forwarding References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: ; from Randy Bush on Sat, Sep 19, 1998 at 09:13:44PM -0700 Organization: WorldGate Inc. X-PGP-Fingerprint: 42 9C 2C A8 4D 2B C9 C4 7D B6 00 B0 50 47 20 97 X-URL: http://gras-varg.worldgate.com/~skafte Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ssh sets a seperate service for X-forwarding sshdfwd-X11 so allow yourself sshd and sshdfwd-X11 and that should be hunky-dory Quoting Randy Bush (randy@psg.com) On Subject: tcpd and ssh X forwarding Date: Sat, Sep 19, 1998 at 09:13:44PM -0700 > FreeBSD 3.0CAM-19980712-SNAP, ssh x forwarding gets in trouble with tcpd > > o i ssh into test.psg.com > > o DISPLAY seems appropriately set > > test.psg.com:/usr/local/etc# env | grep DIS > DISPLAY=test.psg.com:10.0 > > o if i invoke emacs with x forwarding it dies > > test.psg.com:/usr/local/etc# emacs /usr/local/etc/hosts.allow > [2] 16394 > test.psg.com:/usr/local/etc# Sep 19 18:35:25 test sshd[16351]: error: \ > Fwd X11 connection from test.psg.com refused by tcp_wrappers. > [2]+ Segmentation fault (core dumped) /usr/local/bin/emacs -i "$@" > > o but if i shoot hosts deny, it works > > test.psg.com:/usr/local/etc# mv hosts.deny foo > test.psg.com:/usr/local/etc# emacs /usr/local/etc/hosts.allow > [1] 16392 > test.psg.com:/usr/local/etc# mv foo hosts.deny > > o therefore it is a tcp_rwapper problem indeed. yet i have > > sshd : ALL > > in /usr/local/etc/hosts.allow, or i would not even have been able to ssh > into the host. > > clues solicited. and i actually read as many man pages as i thought > relevant. clearly i missed the right one. > > randy > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Email: skafte@worldgate.com Voice: +403 413 1910 Fax: +403 421 4929 #575 Sun Life Place * 10123 99 Street * Edmonton, AB * Canada * T5J 3H1 -- -- When things can't get any worse, they simplify themselves by getting a whole lot worse then complicated. A complete and utter disaster is the simplest thing in the world; it's preventing one that's complex. (Janet Morris) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message