I have a folder which is stored on a remote server and which is mounted locally using sshfs
. Obviously, this requires a password to log on to the server. I would like to get a gui to prompt me for this password.
I managed to do this with a script using zenity
and expect
, but apparently expect
is not secure. So how can I do this properly?
Note, I only want this when mounting this folder, not when doing any other ssh-related things. I want to bind it then to the quicklaunch icon of the folder, and so only then I need the GUI.
As a bonus, I would prefer this without the terminal ever showing up. When I used a script with zenity
, the terminal seemed to pop up behind the GUI. This is not a real problem, but it would be more aesthetically pleasing if it didn't.