Remote filesystem with files caching

view story

http://serverfault.com – Here is my current setup: I connect on a DSL line using SSH to a remote linux box with samba installed. I create a tunnel by forwarding port 139 on my local linux box. I then use smbmount to access files on the remote box. Unfortunately the connection is sometimes slow and it makes software having opened files to hang. It is quite annoying. I was wondering if there is a way to automatically cache files locally to avoid thoses hungs? It could be using smb, SSHFS or even NFS if one has a good setup for doing this. I just need to connect using SSH. (HowTos)