Hacker News new | ask | show | jobs
by pielud 5679 days ago
Can't this be achieved just using ssh instead of setting up a process that listens to the network?

from remote machine:

  ssh me@macbook pbcopy < foo.txt
1 comments

If: 1) macbook has ssh turned on 2) macbook's IP is routable (or forwarded via NAT), 3) server is able to log in to macbook (has private key, or you supply password, etc) 4) the pastboarde is available without a GUI (not sure that sshing to a macbook and issuing pbcopy will adjust the pasteboard of the user at the terminal)

For me, #1, #2, and #3 are false. #4 is unknown. A VPN would make 1,2,3 easier, though.

S

This is what I use, though not as fancy.

mac$ ssh user@remote "some command" | pbcopy