script to auto mount remote sshfss over network


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting script to auto mount remote sshfss over network
# 1  
Old 03-31-2012
script to auto mount remote sshfss over network

I have the folorwing three shel accounts on remote servers which i would like to auto mount at boot, bu have the auto mount be preceded by a check for an active Ethernet or 802.11 connection prito running the sshfs command.
  1. porter@tty.freeshelll.org
  2. cent1750@tty.freeshell.org
  3. redhead277@proshell.hypeshell.com
The question i have pertains to the auto detection of active network connections. Is there a specail call in #bin/sh scripting to auto detect an active network connection?
I am running Centos 6.2
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

scp auto logon to remote using remote authorized_keys

Hi~ i have an authorized key which it made remote host(B). i want log on without password from local(A) to the remote host(B) using authorized key of remote host. what shell i do? anybody help me. (1 Reply)
Discussion started by: tomato00
1 Replies

2. Shell Programming and Scripting

Mount fails (because remote machine is off) bash script stops

Hi, I'm trying to automate a couple of mounts. (I would do this in fstab, but the auto feature causes the virtual machine I'm running in to freeze when it boots up) If the machine I'm trying to connect to is OFF, I get the host unreachable error and then the bash script stops. The problem is... (3 Replies)
Discussion started by: jdilts
3 Replies

3. SuSE

auto mount

Hello, We got some SUSIE servers in and we are trying to get auto mount to work. We normally mount our home directories on RHEL and Solaris to /export/home. The home directories on the Susie servers mount home directory to /home. When uses login their home directories mount. When my coworker does... (2 Replies)
Discussion started by: bitlord
2 Replies

4. Shell Programming and Scripting

Auto mount/rsync/detach script

Hi All, I have got a box here running FreeNAS and have started to hack at someone elses script to make it do what I want. In particular his script was; 1) encrypting the USB attached device - which I dont need. 2) repeated beeping when finished (one long beep would be fine) 3) I dont... (0 Replies)
Discussion started by: bigal.nz
0 Replies

5. UNIX for Dummies Questions & Answers

Enable and disable the auto mount

How to enable and disable the auto mount option for USB devices.? (3 Replies)
Discussion started by: ungalnanban
3 Replies

6. Solaris

NFS VS Auto Mount problem

Dear All, Struck with a peculiar problem a) /opt/a is auto mounted to /home/a for User:a When the User logs in to the server his home directory is getting mounted from the autofs i.e /home/a (/opt/a), Instead is has to mount the User home dir from NIS which is /home/a (from NIS). ... (2 Replies)
Discussion started by: saiprashant
2 Replies

7. Ubuntu

Problem to auto mount on NFS server

I am new in Ubuntu and i use Ubuntu 7.10, and have problem to mount automatic when i reboot computer, Here is my /etc/fstab 192.168.0.91:/home/DATA/it /home/USER/usertest/Documents/Z nfs defaults 0 0 I try many option in that line, but the result is same, I cannot automatic mounting the... (5 Replies)
Discussion started by: blesets
5 Replies

8. UNIX for Advanced & Expert Users

auto mount lofs

Hi All, I want to mount one directory to other. i.e /export/home/dju to /dju It's like a link ( link -s ). but I don't want to use this( link method ) . I try to use : mount -F lofs /export/home/dju /dju the question is, how do I use this mount method with automount ,... (1 Reply)
Discussion started by: mdjuarsa
1 Replies

9. Shell Programming and Scripting

Auto mount

Hi, I have written this Auto mount using script. xterm -e mount/filesrv xterm -e /root/parameters/param.sh& xterm -e /root/parameters/prnscript/makePRN.sh& xterm -e /root/parameters.Releasechecker.sh& After Executing this script. I am getting 6 screens. It supposed to get only 3 screens. (0 Replies)
Discussion started by: kalyani
0 Replies

10. UNIX for Dummies Questions & Answers

auto mount point

hi can i know what is the command to create auto mount point in my unix server? is there any directory which i have to go? (1 Reply)
Discussion started by: legato
1 Replies
Login or Register to Ask a Question
AUTOFS(8)						      System Manager's Manual							 AUTOFS(8)

NAME
/etc/init.d/autofs - Control Script for automounter SYNOPSIS
/etc/init.d/autofs start|stop|restart|reload|status DESCRIPTION
autofs control the operation of the automount(8) daemons running on the Linux system. Usually autofs is invoked at system boot time with the start parameter and at shutdown time with the stop parameter. The autofs script can also manually be invoked by the system administra- tor to shut down, restart or reload the automounters. OPERATION
autofs will consult a configuration file /etc/auto.master (see auto.master(5)) by default to find mount points on the system. For each of those mount points automount(8) will mount and start a thread, with the appropriate parameters, to manage the mount point. /etc/init.d/autofs reload will check the current auto.master map against running daemons. It will kill those daemons whose entries have changed and then start daemons for new or changed entries. If a map is modified then the change will become effective immediately. If the auto.master map is modified then the autofs script must be rerun to activate the changes. /etc/init.d/autofs status will display the status of, automount(8), running or not. SEE ALSO
automount(8), autofs(5), auto.master(5). autofs_ldap_auth.conf(5) AUTHOR
This manual page was written by Christoph Lameter <chris@waterf.org>, for the Debian GNU/Linux system. Edited by H. Peter Anvin <hpa@transmeta.com>. 9 Sep 1997 AUTOFS(8)