You are not logged in.
Hello arch community ,
I want to connect to a sshfs share on demand, so I followed the wiki on this and added the share to my /etc/fstab file:
user@host:/ /home/user/sftp fuse.sshfs user,noauto,idmap=user,x-systemd.automount,x-systemd.device-timeout=30,_netdev,transform_symlinks,identityfile=/home/user/.ssh/key_rsa,debug,sshfs_debug 0 0
If I now try to mount the share by:
[user@client ~]$ mount sftp/
I'll get prompted for the passphrase for my private key and the share gets mounted normally.
However if I try to use the generated Systemd mount file home-user-sftp.mount I get the following:
Jan 27 14:36:13 t470 mount[14007]: user@host: Permission denied (publickey).
Jan 27 14:36:13 t470 mount[14007]: read: Connection reset by peer
Jan 27 14:36:13 t470 systemd[1]: home-user-sftp.mount: Mount process exited, code=exited, status=1/FAILURE
Jan 27 14:36:13 t470 systemd[1]: Mounted /home/user/sftp.
on the server side I just see:
Jan 27 14:36:13 <host> sshd[18255]: Connection closed by authenticating user <user> <client IP> port 52340 [preauth]
I figured this may be caused by Systemd not being able to prompt for the passphrase.
Is there a way around this?
Offline