From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 12:33:18 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CE9C16A4CE for ; Tue, 21 Sep 2004 12:33:18 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FB6443D48 for ; Tue, 21 Sep 2004 12:33:18 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 31658 invoked from network); 21 Sep 2004 12:33:17 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.no-ip.com) ([66.92.78.145]) (envelope-sender ) by mail4.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 Sep 2004 12:33:17 -0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 85217E; Tue, 21 Sep 2004 08:33:17 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Pota Kalima References: From: Lowell Gilbert Date: 21 Sep 2004 08:33:17 -0400 In-Reply-To: Message-ID: <44d60fpzsi.fsf@be-well.ilk.org> Lines: 43 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@FreeBSD.ORG Subject: Re: Ssh connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 12:33:18 -0000 Pota Kalima writes: > Thanks for all your responses. I must add that I am not a programmer, so all > that the verbose stuff did not mean much too. I bit the bullet and started > afresh - re-installed 5.2.1. > > I find that I could ssh to the machine itself, okay - as KeS suggested. The > process ends with the machine connecting to itself! > > What I still cannot do is to ssh from another machine (Laptops MacOS X or > windoz) which I would really like to do. On the mac I get this > > $ ssh -vvv 192.168.0.5 > OpenSSH_3.6.1p1+CAN-2004-0175, SSH protocols 1.5/2.0, OpenSSL 0x0090702f > debug1: Reading configuration data /etc/ssh_config > debug1: Rhosts Authentication disabled, originating port will not be > trusted. > debug2: ssh_connect: needpriv 0 > debug1: Connecting to 192.168.0.5 [192.168.0.5] port 22. > debug1: connect to address 192.168.0.5 port 22: Permission denied > ssh: connect to host 192.168.0.5 port 22: Permission denied > > $ > > The machine I am trying to connect to has NO firewall, yet. Yes, if a firewall were blocking it, you would get a "Connection refused" instead of "Permission denied". If you are using TCP wrappers on ssh, remove that. If you don't know what that means, you're not doing it. Try adding the "-v" flags to sshd, not just the connecting ssh. To do that without rebooting, I think you need to kill your existing sshd and run it again from the command line. If you put 'sshd_flags="-vv"' in /etc/rc.conf, it will be done automatically at every boot (until you remove the line again). I think that the debug messages will go into /var/log/messages. Good luck. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org:8088/~lowell/