I need to open a USB game controller device (joystick) remotely. This device is physically connected to server and is available for local user with permissions:
crw-rw-r--+ 1 root input 13, 0 ** /dev/input/js0
Using sshfs
on client side, I mounted remote /dev/input/
on a local folder /dev/input/remote/
:
sudo sshfs -o allow_other server-usr@server_ip:/dev/input /dev/input/remote
Now, I can see the device in mounted folder on client:
crw-rw-r-- 1 root netdev 0, 0 ** /dev/input/remote/js0
However, programs on client side (like jstest
) fail to open/use device with Permission Denied error!
How can I find access to remote Joystick on the client without permission issues?
MORE: users on both sides are added to FUSE
and NETDEV
groups. Also, I have added line user_allow_other
to /etc/fuse.conf
which is required for allow_other
argument in SSHFS command. Changing chmod
for the device to 777
didn't help as well. No success.