2 releases
0.1.1 | Apr 19, 2024 |
---|---|
0.1.0 | Apr 18, 2024 |
#14 in #sessions
17KB
411 lines
clipat - Remote clipboard server / client
Allows sharing clipboard with remote SSH sessions.
Similar to lemonade.
Installation
- Install Rust.
- Install clipat:
cargo install clipat
Usage in shell
-
Run server on local machine:
clipat server
-
Set up SSH session with remote machine:
ssh -R 14573:127.0.0.1:14573 user@remote
-
To copy text on a remote machine:
cat copy.txt | clipat copy
-
To paste text on a remote machine:
clipat paste > paste.txt
Usage with neovim
This will replace your + and * registers with clipat.
vim.g.clipboard = {
name = 'clipat',
copy = {
['+'] = { 'clipat', 'copy' },
['*'] = { 'clipat', 'copy' },
},
paste = {
['+'] = { 'clipat', 'paste' },
['*'] = { 'clipat', 'paste' },
},
cache_enabled = false,
}
Security considerations
By default, clipat only listens on 127.0.0.1. If you want to listen on all
interfaces, you can use the --listen
option. This is not recommended, as it
allows anyone on the network to access your clipboard.
It is also not recommended to use clipat on multi-user systems, as any user could potentially access your clipboard.
Communications between the client and server are not encrypted. However, if you pipe the connection through SSH, this will take care of encryption over internet.
License
clipat is licensed under the MIT license. Full license text is available in the LICENSE file.
Dependencies
~5–17MB
~258K SLoC