Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SSH with no local home directory?



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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org