Hi Michele,

Michele Cane <michele.c...@gmail.com> writes:
> I am trying to use systemd.automount to mount a remote server with sshfs.
>
> here's my line in fstab:
>
> user@ip_address:/home/user /home/user/Documents/Tempestus fuse.sshfs
> noauto,_netdev,reconnect,comment=systemd.automount,users,uid=1000,gid=1000,idmap=user,allow_other,reconnect,IdentityFile=~/.ssh/id_rsa
>
> in /var/log/syslog i find:
>
> Feb  1 19:58:29 rhadamanthine systemd[1]: Reloading.
> Feb  1 19:58:33 rhadamanthine systemd[1]: Stopping Remote File Systems.
> Feb  1 19:58:33 rhadamanthine systemd[1]: Stopping home-michele-Documents-
> Tempestus.automount.
> Feb  1 19:58:33 rhadamanthine systemd[1]: Starting home-michele-Documents-
> Tempestus.automount.
> Feb  1 19:58:33 rhadamanthine systemd[1]: Set up automount home-michele-
> Documents-Tempestus.automount.
> Feb  1 19:58:33 rhadamanthine systemd[1]: Starting Remote File Systems.
> Feb  1 19:58:33 rhadamanthine systemd[1]: Reached target Remote File Systems.
> Feb  1 19:58:48 rhadamanthine systemd[1]: Mounting
> /home/michele/Documents/Tempestus...
> Feb  1 19:58:48 rhadamanthine systemd[1]: Mounted
> /home/michele/Documents/Tempestus.
> Feb  1 20:00:18 rhadamanthine systemd[1]: home-michele-Documents-
> Tempestus.mount mounting timed out. Stopping.
>
> I cannot ls or cd to the directory
>
> I can easily mount the remote server by issuing
>
> sshfs user@ip_address:/home/user Documents/Tempestus/
>
> I also tryied to remove some of the options in the fstab line without success.
To debug this, use:

systemctl status home-michele-Documents-Tempestus.automount
systemctl status home-michele-Documents-Tempestus.mount

I can see two potential issues with your setup (after trying to
replicate it):

1) You specify IdentityFile=~/.ssh/id_rsa, but globs are not necessarily
   processed, and even if they are, this will resolve to /root/, not
   /home/michele, as you probably intended. Better use the absolute
   path.

2) When running that command as root (i.e. the mount call you can see in
   systemctl status on the .mount unit), does SSH prompt you to accept
   the host key or do you have /root/.ssh/known_hosts set up properly?

-- 
Best regards,
Michael


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to