i have Problems with the automount.
My System is Ubuntu 8.10 and I want to connect to a Terastation with running OpenSSH.
On my old system (Ubuntu 8.04) this script already has worked!! But not with my 8.10...
I have setup public key authentification, so i can connect to my terastation via
My fstab looks like this
email@example.com:/mnt/array1/data /home/niko/mnt/terastation fuse firstname.lastname@example.org:/mnt/array1/data,comment=sshfs,noauto,users,exec,uid=1000,gid=1000,allow_other,reconnect,transform_symlinks,BatchMode=yes 0 0
If i run the /etc/network/if-up.d/mountsshfs with my user, the mount is working well!
But when i run this script as sudo i get a: connection reset by pear
/home/niko/mnt/terastation mounted as current user (niko)
So the automount on system start doesnt's work for me.
niko@nik-thinkpad:/etc/network/if-up.d$ sudo ./mountsshfs
read: Connection reset by peer
/home/niko/mnt/terastation failed to mount as #1000
The files mountsshfs and unmountsshfs are chown to root:root with chmod 755.
Whats going wrong?
//Edit: Ok, found the Problem: I have setup a phasphrase for my rsa_key. Without the a phasphrase it works.