Hi there,
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
Code:
ssh root@192.168.178.25
without password.
My fstab looks like this
Code:
sshfs#root@192.168.178.25:/mnt/array1/data /home/niko/mnt/terastation fuse fsname=sshfs#root@192.168.178.25:/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!
Code:
niko@nik-thinkpad:/etc/network/if-up.d$ ./mountsshfs
/home/niko/mnt/terastation mounted as current user (niko)
niko@nik-thinkpad:/etc/network/if-up.d$
But when i run this script as sudo i get a: connection reset by pear
Code:
niko@nik-thinkpad:/etc/network/if-up.d$ sudo ./mountsshfs
read: Connection reset by peer
/home/niko/mnt/terastation failed to mount as #1000
niko@nik-thinkpad:/etc/network/if-up.d$
So the automount on system start doesnt's work for me.
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.
Bookmarks