From owner-freebsd-questions@FreeBSD.ORG Wed Jun 1 22:06:42 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9727616A41C for ; Wed, 1 Jun 2005 22:06:42 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61E5843D48 for ; Wed, 1 Jun 2005 22:06:42 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp1.utdallas.edu (Postfix) with ESMTP id C837638927A; Wed, 1 Jun 2005 17:06:39 -0500 (CDT) Date: Wed, 01 Jun 2005 17:06:31 -0500 From: Paul Schmehl To: Steven Friedrich , freebsd-questions@freebsd.org Message-ID: <90E95F593BC262869E08B5D8@utd59514.utdallas.edu> In-Reply-To: <200506011757.57097.FreeBSD@InsightBB.com> References: <200506011449.45455.FreeBSD@InsightBB.com> <429E0B57.2070701@scls.lib.wi.us> <20050601203839.GH21127@gentoo-npk.bmp.ub> <200506011757.57097.FreeBSD@InsightBB.com> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: can't figure out ssh, read lots of docs... 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: Wed, 01 Jun 2005 22:06:42 -0000 --On Wednesday, June 01, 2005 17:57:56 -0400 Steven Friedrich wrote: > > I've been successful using ssh-agent, though I have to enter the > passphrase each time I run my script. That's really only an annoyance > now because I'm developing the script and have to enter it often. That > goes away when the script is stable. > First you run ssh-agent screen. Then you run ssh-add, and, when prompted, type in your passphrase. > > What I did notice though, is that I can't login as root using ssh. I > haven't found this mentioned in the man pages. > You should *never* allow remote logins for root. You don't need it. Login using your own account and then use sudo or su - to perform functions that only root can perform. > Anybody know where it's documented, whether it can be changed, and would > that be a colossal mistake? > You change it in the ssh config file, but don't. > I mean, hey, it's a secure shell, why can't I login as root? > > The reason I want to use root is because I'm trying to scp > /etc/master.passwd from each of my four machines so I can write them to > a CD for backup. _______________________________________________ scp the file to your home directory, then move it whereever you want to by using sudo or su -. Don't allow remote root logins. It's unwise. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/ir/security/