S
S
speedvm2017-05-18 10:39:03
SSHFS
speedvm, 2017-05-18 10:39:03

Automount sshfs on startup via fstab?

Good day!
Set up ssh access to the server (debian 8) via RSA (no password). Mounting a directory via sshfs also works without a password. I wrote the line in fstab:

[email protected]:/home/user/tmp/manuals/ /media/data/manuals/ fuse.sshfs x-systemd.automount,allow_other,reconnect 0 2
- does not mount at startup. To be more precise, then:
$ ls -la /media/data/manuals/
ls: невозможно получить доступ к /media/data/manuals/: Нет такого устройства

$ dmesg | grep -i manuals
systemd-fstab-generator[130]: Checking was requested for "[email protected]:/home/speed/tmp/manuals/", but it is not a device.

$ mount | grep -i manuals
systemd-1 on /media/data/manuals type autofs (rw,relatime,fd=34,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)

I suspect that the matter is in the disabled root user. Is there any way to bypass this limitation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
speedvm, 2017-05-18
@speedvm

rm /root/.ssh
mkdir /root/.ssh
cp /home/alexus/.ssh/* /root/.ssh/
chown -R root /root/.ssh
rm /root/.ssh/id_*
ln -s / home/alexus/.ssh/id_* /root/.ssh/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question