Live data from Hacker News

Show HN: Pbproxy – Send your clipboard anywhere you can ssh

github.com

21–22 of 22 posts

Re: Show HN: Pbproxy – Send your clipboard anywhere you can ssh

#21
post #15

With tmux, shell aliases for tmux send-buffer and tmux paste can manually do this without dependencies.

how do you access another machine's clipboard with tmux?

ssh -t that-machine tmux -s your-session show-buffer

And

| ssh -t tmux … set-buffer -

Re: Show HN: Pbproxy – Send your clipboard anywhere you can ssh

#22

Earlier quoted context omitted.

But "where" is your mac? I.e., `cat clipboard | ssh ??? pbcopy`. I travel, so I don't always have the same IP address, and it's still too common to end up in a NAT'd hellscape with no usable IP. (Every office I've ever worked in, with one exception, has have v4-only NAT'd networks. Usually on a -PSK Wifi. Corp network infra is typically a joke.) One could perhaps set something up to forward a connection to a local da…

Use a reverse port forward via ssh. ssh -R 127.0.0.1:2210:127.0.0.1:22 user@somemachine Of course you could instead add it to your ssh config along with agent forwarding.

Just for other people arriving from Google who might think this is too much work, it seems to be enough for my use case to just type

    ssh user@host "cat foo.txt" | pbcopy
from my Mac terminal.
Post reply on HN