Remix.run Logo
goku12 13 hours ago

How about mounting your dotfiles directory (~/.config) or even your entire home directory on the remote system using SSHFS or NFS? I'm sure somebody would have tried it or some project may already exist. Any idea why that isn't as prevalent as copying your dotfiles over?

cl3misch 11 hours ago | parent | next [-]

That requires the remote machine to be configured to SSH into your local machine. In the scenario where OP's project is useful (SSH to foreign machines) I might not want that.

On the other hand, if the remote machine is mine, it will have my config anyway.

goku12 9 hours ago | parent [-]

There should be some way to mount a local directory onto a remote system without requiring the remote system to log in to the local system. SSH provides a secure bidirectional communication channel between the two systems. While we normally use sshfs to mount a remote directory to the local system, why should the reverse be impossible? Besides, you could also use NFS over SSH or TLS.

sigwinch 12 hours ago | parent | prev | next [-]

I’m trying to imagine why sshfs mounting the less-capable remote onto the workstation would be blocked.

vbernat 12 hours ago | parent | prev [-]

This would enable a lot of attacks.

12 hours ago | parent | next [-]
[deleted]
goku12 12 hours ago | parent | prev [-]

Could you elaborate?

oasisaimlessly 10 hours ago | parent | next [-]

Now anybody with root/sudo/physical access to the remote machine has full R/W access to your entire home directory.

goku12 9 hours ago | parent [-]

Well, what if it's a separate directory meant exclusively for remote systems alone? And what if the remote mount is read-only, perhaps with a writable layer on top using overlayfs that can be discarded on logout?

vbernat 6 hours ago | parent [-]

This now looks very complex.

11 hours ago | parent | prev [-]
[deleted]