for clipboard sharing between local and remote environment
- install at local environment
clip-share.sh <host name at ssh config>
local host
:windows(MSYS,WSL)
,Mac OS X
,Ubuntu
remote host
:Mac OS X
,Ubuntu
Threre is no need to install any tools without Mac OS X environment.
(Mac OS X
require nkf
tool, )
CLIPSHARE_SSH_RETRY_INTERVAL
: default value is3[sec]
CLIPSHARE_DROP_WINDOWS_CR
: default value is1(enable)
sequenceDiagram
participant local
participant remote
loop monitoring clipboard with ssh
opt if local local clipboard has changed
local->>remote: send clipboard via ssh tunnel
Note right of remote: base64 format
remote ->> remote: update clipboard
end
opt if remote clipboard has changed
remote ->> local: send clipboard via ssh tunnel
Note left of local: base64 format
local ->> local: update clipboard
end
Note left of local: break by ctrl-c
end
wait loop (local) <-- ssh pipe --> pipe wait loop (remote) | clipboard wait loop (remote) <-- ssh pipe --> pipe loop (local)
- Clipboard error : Target STRING not available when running · Issue #2642 · neovim/neovim · GitHub
- Error : target STRING not available · Issue #38 · astrand/xclip · GitHub
- ClipboardPersistence - Ubuntu Wiki
assuming both your ssh client passes the LC_* variable (SendEnv in ssh_config) and the sshd server accepts them (AcceptEnv in sshd_config))