From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 15:08:01 2007 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 967B616A46D for ; Wed, 31 Oct 2007 15:08:01 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 76D1C13C48E for ; Wed, 31 Oct 2007 15:08:01 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 9DDE565525 for ; Wed, 31 Oct 2007 09:48:48 -0500 (CDT) Date: Wed, 31 Oct 2007 09:48:48 -0500 From: Paul Schmehl To: FreeBSD Questions Message-ID: In-Reply-To: <62b856460710310231h3bc517cdl20300179ac6f1a39@mail.gmail.com> References: <62b856460710310231h3bc517cdl20300179ac6f1a39@mail.gmail.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: ssh 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, 31 Oct 2007 15:08:01 -0000 --On Wednesday, October 31, 2007 10:31:37 +0100 Michael Grant wrote: > If I'm sued as root and I ssh somewhere, ssh/scp reads it's files from > /root/.ssh/. The docs say it reads from ~/.ssh which is what I want, > but it's not doing that. When sued, the shell is properly expanding ~ > to my home dir. > > Anyone know of a way around this behavior? ssh username@host -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/