No, it can't be done, but you can unlock a locked drive over SSH with the following command:
sudo udisksctl unlock -b /dev/sda1
This command unlocks the /dev/sda1 drive. Your drive will have it's own name. You will then be prompted for a password, and then get a message like the following:
Unlocked /dev/sda1 as /dev/dm-0.
Now you need the mount point, which can be found with the following:
df -h
Which should give you as one of it's lines as the following:
/dev/dm-0 ext4 7.3T 93M 6.9T 1% /media/nas/Extend-1
cd /media/nas/Extend-1 This will get you into the mounted drive.
To unmount the drive do the following:
sudo udisksctl unmount -b /dev/dm-0
You should get the following message:
Unmounted /dev/dm-0.
This can be done in the terminal, and over SSH, which is the easiest way to mount and unmount a secure drive over SSH that I know of.
/etc/fstabsolution that requires password @ boot & then works for either login (ssh or gui) – guiverc Jun 19 '17 at 13:56tryion, in which an encrypted partition is created and set automount using the 'Disks' GUI application. – masavini Jun 19 '17 at 14:25udisksctl unlock -b /dev/sdb1 && udisksctl mount -b /dev/mapper/luks-bla-bla-bla... but i have to insert the root password 3 times!! – masavini Jun 19 '17 at 21:47