Date: Wed, 31 Oct 2007 08:57:37 -0400 From: "Andy Harrison" <aharrison@gmail.com> To: "FreeBSD Questions" <freebsd-questions@freebsd.org> Subject: Re: ssh Message-ID: <a22ff2940710310557o5ae52dd4o4013abb4186b5733@mail.gmail.com> In-Reply-To: <62b856460710310231h3bc517cdl20300179ac6f1a39@mail.gmail.com> References: <62b856460710310231h3bc517cdl20300179ac6f1a39@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/31/07, 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? Instead of just 'su' use 'su -' and that should do the trick. - -- Andy Harrison public key: 0x67518262 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFHKHvaNTm8fWdRgmIRAhFhAJ46R6bNuvJy3BY4ooAdaI3vcsRp8gCgzAYU nynWAduwbQCBu3x/DLJbhRg= =9XV1 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a22ff2940710310557o5ae52dd4o4013abb4186b5733>