This is my local system configuration.
NAME="elementary OS" VERSION="5.0 Juno"
I am mounting my remote server's file system on a subdirectory by this command, which is working fine.
sudo sshfs -o allow_other firstname.lastname@example.org: /mnt/Production_server
The terminal prompts for the local's sudo password first, then the remote's password. (Even though I have already copied the local's ed25519 public key into the remote's
~/.ssh/authorized_keys, somehow that does not work. I would like to make it work, but that is more like a side question.)
Some tutorials led me to believe that I do not have to issue the above command every-time and the remote can be mounted automatically at each boot up. Following that, I entered the following line at the end of my
After I poweroff, the laptop simply refuses to boot and throws a message saying You are in emergency mode. Lucky that it allows me into a very basic login shell where I can edit the
/etc/fstab using nano. Only after I eliminate the last line it boots up properly.
- Is it possible to automatically mount the remote at each reboot? How will the authentication take place?
- If possible, am I editing the file system table incorrectly? What should the last line look like? Or is the method entirely different?