SSH with no local home directory?

Don Levey lug at the-leveys.us
Tue Jan 24 16:21:12 EST 2006


discuss-bounces at blu.org wrote:
> On Tue, Jan 24, 2006 at 03:49:51PM -0500, Don Levey wrote:
>> Here's my situation:
>> I need to find a way, if possible, for a user with no local home
>> directory to make an ssh connection to another host.  The problem
>> here is that normally the remote machine's RSA key is stored in
>> ~/.ssh/known_hosts, but with no home dir that won't work.  Is there
>> any system-wide known_hosts file I could implement that would be
>> checked first (or instead)?  The thing I'm trying to do is to get
>> the machine to connect to another based upon a web page connection,
>> but the user ID running the web server has no home dir or login.
>
> According to the ssh man page, /etc/ssh/ssh_known_hosts is what you're
> looking for.
>
> Nathan
>
Ah, that's it!  I kept trying to use /etc/ssh/known_hosts and was failing
(of course).  I've just tested this and it works.

 -Don



More information about the Discuss mailing list