Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier remote buffer transfer #48

Open
kovaga opened this issue Aug 25, 2021 · 0 comments
Open

Easier remote buffer transfer #48

kovaga opened this issue Aug 25, 2021 · 0 comments

Comments

@kovaga
Copy link

kovaga commented Aug 25, 2021

There seems to be a much easier way of transferrign the content of remote buffer to loca machine when working over ssh.

Set the following options in the ~/.ssh/config on the local machine
Host *
ForwardX11 yes
ForwardX11Trusted yes

make sure the .tmux.conf on remote machine contains the following line and that xclip is installed.
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary"

This way when you ssh into a remote host, the .Xauthority cookie is created and the $DISPLAY is set to localhost:10.0

so xclip executed on remote host would update the content of the local buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant