5 ms·
I wish there was a tool that allowed me to send my clipboard to a server and anytime I sent something to the clipboard it checks the ssh hosts file for the conf
by photoGrant 4y ago
I wish there was a tool that allowed me to send my clipboard to a server and anytime I sent something to the clipboard it checks the ssh hosts file for the config and sends it off. I'd like to 'paste' on any other machine with an ssh command.
- zenosmosis 4y agoThis is interesting, I'd like something like that as well. I'm doing some experimentation with something sort of along these lines via WebRTC.
- deleted 4y ago[deleted]
- nikvdp 4y agoI keep a cobbled together version of something like this in my rc files. The ui mimics macOS’s pbcopy/pbpaste commands (it degrades gracefully on linux boxes too by falling back to xsel if available, and then to a tmp file for use on headless servers). The special sauce is that you can put a server name from your ssh config on the end of a pbcopy or pbpaste command so you can do stuff like run `echo hello | pbcopy server2` on server1, after which doing `pbpaste` from server2 would print 'hello'. You can also do this in the other direction with pbpaste, eg from server2 you can run `pbpaste server1` and it'll print out the contents of server1's clipboard. The current setup is a bit coupled to my rc files, but if there's interest would be glad to refactor a bit and toss it on github
- nikvdp 4y agohere you go! https://github.com/nikvdp/pbproxy https://github.com/nikvdp/pbproxy
- maneesh 4y agoVery interested
- photoGrant 4y agoyep, I want this and you're half way there!
- nikvdp 4y agowhat's the missing half? file transfer?
- photoGrant 4y agoI'd like to do this with a client/server routine where the server will spit out to any client connected with a tunnel
- photoGrant 4y agoYOU put this together! I've just realised. What a dude! Great rally.
- codetrotter 4y ago> if there's interest would be glad to refactor a bit and toss it on github Even just upload it in its current state would be nice :)
- jedisct1 4y agoThere's Piknik: https://github.com/jedisct1/piknik https://github.com/jedisct1/piknik
- photoGrant 4y agoLooks exactly it!
- krisgenre 4y agoThough not exactly the same, I did create a project for easy sharing of clipboard https://github.com/krishnaraj/oneclipboard https://github.com/krishnaraj/oneclipboard. Lost interest after background Clipboard access was restricted in Android 10 or something.
- brasic 4y agoI use https://github.com/BlakeWilliams/remote-development-manager https://github.com/BlakeWilliams/remote-development-manager for this, which works by running a server and forwarding its socket over the SSH connection. If you’re willing to add some aliases and editor/ssh config you can easily get a UX that feels like a unified clipboard across remote hosts. My favorite use is integrating the yank buffer of remote vim processes with my local system clipboard.
- meitham 4y agoOSC 52 can do that, even for iPhone Blink terminal