本地USB设备可以通过X11转发被远程应用程序使用吗?
我正在运行一个远程应用程序并使用 x11 转发将其显示在我的屏幕上。我可以让远程应用程序使用我的本地 USB 端口来访问设备(例如 USB 磁盘)吗?如果可以请详细的流程。
谢谢!
I am running a remote application and use x11 forwarding to display it on my screen. Can I let the remote application use my LOCAL usb port to access devices (e.g. usb disks)? If so, detailed procedure please.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只需要在 USB 驱动器上读/写文件,这应该可以完成工作。
您可以使用 sshfs 将本地 USB 挂载到远程计算机上:
您需要在两台计算机上安装 ssh:
插入您的 U 盘。你可能会自动挂载,如果没有,手动挂载USB驱动器:
然后你需要在远程计算机上安装sshfs:
在远程计算机上为你的U盘创建一个挂载点:
最后,用sshfs挂载它:
我不知道是否您可以使用 sshfs 远程挂载 /dev/sdbX。如果您需要直接访问 USB 端口,您应该尝试一下,但我从未这样做过。
This should do the work if you just need to read/write files on a USB drive.
You could mount your local usb on the remote computer using sshfs:
You need to install ssh on both computers:
Plug your usb stick. You will probably have automount, if not, mount the usb drive manually:
Then you need to install sshfs on the remote computer:
Create a mount point for your usb stick on the remote computer:
Finally, mount it with sshfs:
I dont know if you can remote mount /dev/sdbX using sshfs. If you need direct access to the USB port you should try it, but I never did it.