Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-28-2006, 11:06 AM   #1
LQ Newbie
Registered: Aug 2001
Location: Manchester
Distribution: RedHat 9.0, FreeBSD
Posts: 25

Rep: Reputation: 15
automount nfs HA

I was messing around at home a couple of days ago and got to thinking that I'd like to really lock down my server so that no-one could login to the server unless they had a user account and even block root access via the console, so root access can only be gained by logging in as a user via ssh or at the console and then su'ing to root. Not a problem really but then I wanted to take it a bit further and have my home directory automounted from an nfs server. The problem I now have is that I have ssh configured to only allow passphrase authentication using my ssh keys, stored in ~/.ssh/ and not password authentication, so if my nfs server falls over I would have no access except via the console. The obviouse answer seemed to be 2 nfs servers kept in sync, however the question is how to configure the automounter to use one or the other in the event of a failure.

I thought about writing a shell script that would check if the nfs server was working and if not change the automounter to use the other one, therefore still able to let me in using my ssh keys.

This just seemed a little clumsy and inelegant.

Does anyone know of a better way to configure the automounter or is the best option to create an authorised_keys file containing the information for every user outside of the home directory on every server and pointing the sshd_config at it? The problem would then be to keep this file updated which is why I wanted the home directory NFS mounted so I'd just have to update one location.

Anyone have any better suggestions?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
About NFS automount mahabooba Solaris / OpenSolaris 9 06-30-2006 12:31 AM
nfs automount issue after reboot chickie Linux - Enterprise 2 01-10-2006 03:37 PM
not able to automount files in nfs at startup time kool124 Linux - Networking 4 10-03-2005 11:04 AM
automount nfs and smb al_erola Linux - Networking 2 04-27-2003 11:33 AM
NFS - Automount / Security Issues gene_gEnie Linux - Networking 0 02-08-2002 03:05 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration