# Clipboard through ssh

**URL:** https://discourse.julialang.org/t/clipboard-through-ssh/113421
**Category:** General Usage
**Created:** [April 24, 2024, 5:58am UTC](https://discourse.julialang.org/t/clipboard-through-ssh/113421 "2024-04-24T05:58:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thomasj](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@thomasj](https://discourse.julialang.org/u/thomasj)
#### Post date: [April 24, 2024, 5:58am UTC](https://discourse.julialang.org/t/clipboard-through-ssh/113421/1 "2024-04-24T05:58:11Z")

</div>

I’m using `ssh -X user@IPADDRESS` to access a computer on which I run julia. I would like to use the clipboard function to paste data on the local computer.

Both computer are running Linux, and are using wayland.

If both computer have `wl-clipboard` installed, I get the following error:

```julia
julia> clipboard("hi")
Failed to connect to a Wayland server: No such file or directory
Note: WAYLAND_DISPLAY is unset (falling back to wayland-0)
Note: XDG_RUNTIME_DIR is set to /run/user/1000
Please check whether /run/user/1000/wayland-0 socket exists and is accessible.
ERROR: IOError: write: broken pipe (EPIPE)

```

If both computer have `xclip` installed I get the following error:

```julia
julia> clipboard(1)

julia> X Error of failed request: BadAccess (attempt to access private resource denied)
  Major opcode of failed request: 18 (X_ChangeProperty)
  Serial number of failed request: 13
  Current serial number in output stream: 14

```

If both computer have `xsel` installed, I do not get any error message, but I also do not get anything in the local clipboard.

Does anyone know how to solve this issue?
