Yes, this is a link to one of my own articles, but I've been using this tip so long I'd forgotten I even had a special setup for making it happen. If you've ever wanted to pipe output in a remote SSH session right to your macOS clipboard, here you go.