OK - still banging my head on this one, but have made minor progress.
As for creating a launcher - that seems nigh on if not actually impossible in 12.04
@matt_symes
The user is being returned correctly and the usernames and UIDs match between systems. The password being prompted for is the SSH password for the server not a sudo / elevation password. I've added full paths in as suggested - but still the same result. However, I added:
Code:
read -p "Press any key to continue... " -n1 -s
as the last line of the script so it pauses before finishing. And I find that until I press the any key the remote directory is actually mounted and functions fine. As soon as I hit a key, the script finishes and the Terminal window exits - and the remote dir is no longer mounted.
When run from command line I end up with two processes running:
Code:
4705 ? S 0:00 ssh -x -a -oClearAllForwardings=yes -2 crypto@ubuserver -s sftp
4707 ? Ssl 0:00 /usr/bin/sshfs -o idmap=user crypto@ubuserver:/home/crypto/shared /home/crypto/ubuserver_shared
When run from the desktop or Nautilus I end up with four processes until a key is pressed to complete the script:
Code:
4912 pts/2 Ss+ 0:00 /bin/sh -c '/home/crypto/mount_ubuserver_shared.sh'
4914 pts/2 S+ 0:00 /bin/bash /home/crypto/mount_ubuserver_shared.sh
4921 pts/2 S+ 0:00 ssh -x -a -oClearAllForwardings=yes -2 crypto@ubuserver -s sftp
4925 ? Ssl 0:00 /usr/bin/sshfs -o idmap=user crypto@ubuserver:/home/crypto/shared /home/crypto/ubuserver_shared
So it seems the ssh process belongs to the pts/X - so when the Terminal exits it takes the ssh process out with it killing the mount. I'm thinking I need to change my script to background the command - time for some more meddling
Bookmarks