You are not logged in.

#1 2020-04-25 16:52:29

emetib
Member
Registered: 2020-04-25
Posts: 1

sytemd unit file not sending username to host for type fuse.sshfs

hello eveyone,

i was trying to help someone set up a unit file on their system when i started to play around with mine to get their's to work.
i have multiple vm's, with a fuse.sshfs unit file set up in /etc/systemd/system/. .  with each of my vm's it was working great, how i wanted it to, and then i broke one of them trying to duplicate what the other person was trying to do.

the person was trying to get his working as a user unit file ~/.config/systemd/user/..  so i removed mine from /etc/ and put it in /home/user/ and then ran into a problem so i tried to put it back into /etc/ and it's failing with the same problems that it did in /home/....

the problem is that it's not sending the user name when in /home/... or when i put it back into /etc/...
UNIT FILE-----------
[Unit]
Description=sshfs_mount share
Requires=sshd.service

[Mount]
What=emetib@192.168.122.1:/home/emetib/programming/share/
Where=/home/chadb/share
Type=fuse.sshfs
Options=IdentityFile=/home/chadb/.ssh/id_rsa,allow_other,follow_symlinks,_netdev

[Install]
WantedBy=multi-user.target
-------------
this was working just fine when it was in /etc/....  now that i have tried to put it back it's not sending the username

-/var/log/auth.log - on host
Failed password for invalid user  from 192.168.122.11 port 58501 ssh2
(that's a double space after user)

-journalctl -f - on vm is not showing anything
----------
what i have done-
systemctl daemon-reload
systemctl enable home-chadb-share.mount
(systemctl list-unit-files is showing that it's enabled)
systemctl start home-chadb-share.mount
(just jumps to next line, no output on stdout, or stderr)
journalctl -f , doesn't show anything

on my other vm's with the same unit file this is working fine and the host's auth.log file is showing them logging in.
vm with problems-
cat /etc/debian_version - 10.3
systemd --version - systemd 215

other vm's-
NAME="openSUSE Leap"
VERSION="15.1"
systemd version - 234

CentOS Linux release 7.7.1908 (Core)
systemd version - 219

Debian GNU/Linux bullseye/sid
systemd version - 244(.1-1)

edit:
host -
cat /etc/debian_sersion - bullseye/sid
QEMU emulator version 4.2.0 (Debian 1:4.2-6)
----------------

any idea's as to why it's not sending username to host?

Last edited by emetib (2020-04-25 16:56:35)

Offline

Board footer

Powered by FluxBB