Bug#737331: [Pkg-systemd-maintainers] Bug#737331: systemd.automount fails to mount with sshfs
Hi Michael, On Wed, 05 Feb 2014 23:14:22 +0100 Michael Stapelberg stapelb...@debian.org wrote: Running the command as root is definitely the right way of debugging this. You may want to increase verbosity, i.e. add the LogLevel=DEBUG2 option. It does sound more and more like this is not actually a systemd bug, though. Do you agree that we can close this and you’ll get your SSH setup fixed? There’s debian-users for support like that. I managed to have automount working by creating using a rsa with root. I anyway think that how systemd.automount handles the mount process is problematic since is mounting with PID1. A user without root access cannot set up an automount location. Cheers Mike signature.asc Description: PGP signature
Bug#737331: [Pkg-systemd-maintainers] Bug#737331: systemd.automount fails to mount with sshfs
Hi Michael, On Wed, 05 Feb 2014 23:14:22 +0100 Michael Stapelberg stapelb...@debian.org wrote: I don’t think it’s a user problem, since you are being prompted for the password of the user michele, not root. Also, you clearly specify michele@ in the mount call. Running the command as root is definitely the right way of debugging this. You may want to increase verbosity, i.e. add the LogLevel=DEBUG2 option. It does sound more and more like this is not actually a systemd bug, though. Do you agree that we can close this and you’ll get your SSH setup fixed? There’s debian-users for support like that. I agree with you that is a SSH setup problem. Thank you very much for your help. Cheers Mike signature.asc Description: PGP signature
Bug#737331: [Pkg-systemd-maintainers] Bug#737331: systemd.automount fails to mount with sshfs
Hi Michele, Michele Cane michele.c...@gmail.com writes: Process: 3367 ExecMount=/bin/mount mich...@thegate.doesntexist.com:/home/michele /home/michele/Documents/Tempestus -t fuse.sshfs -o noauto,comment=systemd.automount,_netdev,reconnect,users,uid=1000,gid=1000,idmap=user,allow_other,reconnect,IdentityFile=/home/michele/.ssh/id_rsa (code=exited, status=1/FAILURE) […] when I run the command as root it asks me for the password of user michele. If I understand correctly is the user root on my local machine connecting to the server as user michele. How can I solve this practically? I don’t think it’s a user problem, since you are being prompted for the password of the user michele, not root. Also, you clearly specify michele@ in the mount call. Running the command as root is definitely the right way of debugging this. You may want to increase verbosity, i.e. add the LogLevel=DEBUG2 option. It does sound more and more like this is not actually a systemd bug, though. Do you agree that we can close this and you’ll get your SSH setup fixed? There’s debian-users for support like that. -- 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
Bug#737331: [Pkg-systemd-maintainers] Bug#737331: systemd.automount fails to mount with sshfs
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
Bug#737331: [Pkg-systemd-maintainers] Bug#737331: systemd.automount fails to mount with sshfs
Hi Michael, On Mon, 03 Feb 2014 22:28:06 +0100 Michael Stapelberg stapelb...@debian.org wrote: To debug this, use: systemctl status home-michele-Documents-Tempestus.automount resulting in: home-michele-Documents-Tempestus.automount Loaded: loaded (/etc/fstab) Active: active (waiting) since Mon 2014-02-03 23:07:16 CET; 37s ago Where: /home/michele/Documents/Tempestus systemctl status home-michele-Documents-Tempestus.mount resulting in (after changing the path to rsa as you suggested): home-michele-Documents-Tempestus.mount - /home/michele/Documents/Tempestus Loaded: loaded (/etc/fstab) Active: failed (Result: exit-code) since Mon 2014-02-03 23:08:21 CET; 6s ago Where: /home/michele/Documents/Tempestus What: mich...@thegate.doesntexist.com:/home/michele Process: 3367 ExecMount=/bin/mount mich...@thegate.doesntexist.com:/home/michele /home/michele/Documents/Tempestus -t fuse.sshfs -o noauto,comment=systemd.automount,_netdev,reconnect,users,uid=1000,gid=1000,idmap=user,allow_other,reconnect,IdentityFile=/home/michele/.ssh/id_rsa (code=exited, status=1/FAILURE) 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. no changes apparently. 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? when I run the command as root it asks me for the password of user michele. If I understand correctly is the user root on my local machine connecting to the server as user michele. How can I solve this practically? Cheers Mike signature.asc Description: PGP signature