在 Mac 上使用 SSHFS 和受密码保护的私钥

发布于 2024-10-06 07:25:04 字数 521 浏览 0 评论 0原文

大家好,我有一个远程文件服务器,用来托管我的音乐/电影。我有一台笔记本电脑和一台台式机,想要在两台机器之间共享我的文件,但文件实际上不在任何一台机器上,因此我使用一台即将报废的旧笔记本电脑来托管 SSH 服务器,将其插入我的外部设备驾驶。

我在服务器上配置了 sshd,以接受使用受密码保护的私钥的连接,并且使用 Cyber​​duck 等应用程序效果很好。问题是,我希望能够打开 iTunes 并将其指向我的远程资料库。 (显然 iTunes 只能在安装共享时工作。)同样,如果我想观看电影,我不想将其复制到桌面,等待传输完成,然后开始观看。我想双击该文件,并将其传输到我的笔记本电脑,就像它是本地文件一样。

问题是,我尝试从此站点安装 sshfs:

sshfs for Mac OS X

但我不能弄清楚如何提供私钥,更不用说受密码保护的私钥了。我是 SSH 服务器配置的新手,因此如果我遗漏了任何重要信息,请告诉我。

谢谢!

Hey guys, I have a remote fileserver that I use to host my music/movies. I have a laptop and desktop, and wanted to share my files between the two, without the files actually being on either machine, so I employed an old dying laptop to host an SSH server, plugged into my external drive.

I have sshd configured on the server to accept connections using my password-protected private key, and it works great using applications like Cyberduck. The problem is, I want to be able to open iTunes and point it to my remote library. (Obviously iTunes would only work while the share is mounted.) Similarly, if I want to watch a movie, I don't want to have to copy it to my desktop, wait for the transfer to finish, then start watching. I want to double-click the file, and have it stream to my laptop as if it were a local file.

The problem is, I tried installing sshfs from this site:

sshfs for Mac OS X

But I can't figure out how to provide a private key, let alone a password-protected one. I'm new to SSH server configuration, so if I'm leaving out any crucial information, let me know.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨夜星沙 2024-10-13 07:25:04

您可能首先想使用 MacFuse 附带的 OS X 标准 sshfs 此处。使用它,它支持读取 $HOME/.ssh/config 和 ssh 密钥,就像标准命令行 ssh 客户端一样。尝试使用 ssh 客户端建立连接,然后使用相同的用户名和主机名进行 sshfs 挂载。我正是使用 iTunes 的这种设置来远程访问我的音乐库。但是,如果涉及的计算机都是 OS X 系统并且位于同一网络上(以便 Bonjour 发现工作),则当前版本的 iTunes 允许自动共享音乐库,如只要您愿意在两者上保持 iTunes 运行即可。请参阅iTunes ->首选项->分享

You might first want to use the standard sshfs for OS X which is included with MacFuse here. Using that, it supports reading the $HOME/.ssh/config and ssh keys just like the standard command line ssh client. Try getting a connection working with ssh client and then use the same username and host name for the sshfs mount. I use exactly this setup with iTunes for accessing my music library remotely. However, if the machines involved are both OS X systems and on the same network (so that Bonjour discovery works), current versions of iTunes allow automatic sharing of music libraries, as long as you are willing to keep iTunes running on both. See iTunes -> Preferences -> Sharing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文