Skip to content

Easier remote buffer transfer #48

@kovaga

Description

@kovaga

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions