From owner-freebsd-questions@FreeBSD.ORG Thu May 29 10:09:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B99A1065690 for ; Thu, 29 May 2008 10:09:35 +0000 (UTC) (envelope-from jmc-freebsd@milibyte.co.uk) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by mx1.freebsd.org (Postfix) with ESMTP id B9CD68FC62 for ; Thu, 29 May 2008 10:09:34 +0000 (UTC) (envelope-from jmc-freebsd@milibyte.co.uk) Received: from [84.92.153.232] (helo=milibyte.co.uk) by pih-relay04.plus.net with esmtp (Exim) id 1K1f4e-0006Ow-RG; Thu, 29 May 2008 11:09:33 +0100 Received: by milibyte.co.uk with local (Exim 4.69) (envelope-from ) id 1K1f4e-0000rn-5x; Thu, 29 May 2008 11:09:32 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Thu, 29 May 2008 11:09:31 +0100 User-Agent: KMail/1.9.7 References: <200805291048.28277.pieter@degoeje.nl> <9irs34l6dbdpttkvlo23mpd0qbmvh7l1vk@4ax.com> In-Reply-To: <9irs34l6dbdpttkvlo23mpd0qbmvh7l1vk@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805291109.32027.jmc-freebsd@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd@milibyte.co.uk X-SA-Exim-Scanned: No (on milibyte.co.uk); SAEximRunCond expanded to false X-Plusnet-Relay: b8703f3576cf09c9f06aaaf4559689c2 Cc: Gilles Subject: Re: Renaming "root" to "homer"? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2008 10:09:35 -0000 On Thursday 29 May 2008, Gilles wrote: > On Thu, 29 May 2008 10:48:27 +0200, Pieter de Goeje > > wrote: > >Unless you have explicitly set PermitRootLogin to yes in > > /etc/ssh/sshd_config, it is not possible to login as root using > > ssh. > > Right. I did this because I was tired of having to log on as homer > and then sudo'ing to root, using two complicated passwords :-/ > > I guess I should learn how to use public/private keys instead. If using keys instead of passwords you could consider setting PermitRootLogin to "without-password". It's a misleading choice of name for the option but it ensures that root using ssh must use keys instead of a password. Adding your own public key to /root/.ssh/authorized_keys on the remote machine avoids the need for you to remember the remote password. -- Mike Clarke