Hi Everyone:
I have my gentoo boxes behind a firewall, as they should be. There is just a pinhole to the outside on a nonstandard port, and I listen on ssh for incoming connections. On the inside I'm running samba and it works quite well locally, with the usual complaints and workarounds.
Coming in from outside I am using a macbook pro with new catalina. That offered some problems, but also works. I can ssh in, I can sftp. Sshfs works but you have to remember to put the mount point in user-controlled space. The Mac won't let you use /Volumes as user. Same thing with reverse-tunneling samba -- you can't use privileged ports like 445 as user, even if you're not using them "Operation not permitted", well we knew this. The workaround with a 127.0.0.2 loopback alias didn't work either, that's new. No listening on low ports for user in Catalina, period. The new wrinkle is that medium ports between 1024 and (I think) 8192 don't work either. But they don't give an error message, they open but they don't work. So you do something like ssh me@myserver.net -L 127.0.0.1:44445:myserver.net:445 and you can mount the samba share in smb://me@myserver.net:44445/me, and off you go. Helps if you set up passwordless for the ssh login, it will still ask you for your samba password. All set, full access.
*** Here's the problem: It's slow as mud! Like 30 seconds to get the initial directory listing. This is true both for sshfs and for smb. Files transfer in both just fine, but directories take for-effing-ever to load.
The broadband connection is fast. The gentoo server (Core i7 16GB) has 1gbps up and down, My ping to where I am now is around 60ms, which I think is about as good as it gets, and d/l speed from the client 200mb/s, up only 5mb/s but still we dreamed about such transfer speeds back in the day. I can use zoom with no delay at all, even with ssh, in the terminal the directory listing is instantaneous.
I was thinking it was the finder previews that were holding things up, but I've noticed the directory displays without them, and only loads them later anyway.
Any insights you may have on how to get the whole thing to be more responsive, I would greatly appreciate.
Yes I have thought of alternatives to working this way, but I am trying to figure *this* part now and will go down the rdp rabbit hole later.
Cheers,
Jon.


