From owner-freebsd-questions Sun Mar 31 20:43:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id DB18A37B41C for ; Sun, 31 Mar 2002 20:43:08 -0800 (PST) Received: from localhost (localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.11.6/8.11.6) with ESMTP id g314d2d29374; Sun, 31 Mar 2002 20:39:02 -0800 (PST) (envelope-from andrsn@andrsn.stanford.edu) Date: Sun, 31 Mar 2002 20:39:02 -0800 (PST) From: Annelise Anderson To: Danny Cc: questions@FreeBSD.ORG Subject: Re: How to disable ssh? In-Reply-To: <000901c1d934$2404b6a0$c601a8c0@win2000> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 1 Apr 2002, Danny wrote: > Hello, > > I am running FreeBSD 4.3 and I want to disable ssh access to my machine. > > I have already disabled telnet and ftp already but I can't find how I can > disable ssh in /etc/inetd.conf > > Here is a sample of my file: > > # $FreeBSD: src/etc/inetd.conf,v 1.44.2.3 2000/10/04 07:58:51 kris Exp $ > # > # Internet server configuration database > # > # @(#)inetd.conf 5.4 (Berkeley) 6/30/90 > # > #ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l > #telnet stream tcp nowait root /usr/libexec/telnetd telnetd > #shell stream tcp nowait root /usr/libexec/rshd rshd > #login stream tcp nowait root /usr/libexec/rlogind rlogind > sshd (which handles logins) usually runs as a daemon because you asked it to--in /etc/rc.conf. You can comment out the line enabling it and check that it's not enabled in /etc/defaults/rc.conf For now (until you reboot) you can just (as root) killall sshd. Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: BSDmall.com and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message