{"id":13475344,"url":"https://github.com/bottlerocketlabs/remote-pbcopy","last_synced_at":"2026-01-14T19:30:26.272Z","repository":{"id":57562234,"uuid":"239978631","full_name":"bottlerocketlabs/remote-pbcopy","owner":"bottlerocketlabs","description":"remote pbcopy over ssh","archived":false,"fork":true,"pushed_at":"2024-03-24T22:11:59.000Z","size":436,"stargazers_count":20,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T05:33:04.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"skaji/remote-pbcopy-iterm2","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bottlerocketlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-12T09:54:30.000Z","updated_at":"2025-02-07T16:29:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bottlerocketlabs/remote-pbcopy","commit_stats":null,"previous_names":["stuart-warren/remote-pbcopy"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/bottlerocketlabs/remote-pbcopy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlerocketlabs%2Fremote-pbcopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlerocketlabs%2Fremote-pbcopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlerocketlabs%2Fremote-pbcopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlerocketlabs%2Fremote-pbcopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bottlerocketlabs","download_url":"https://codeload.github.com/bottlerocketlabs/remote-pbcopy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlerocketlabs%2Fremote-pbcopy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:19.612Z","updated_at":"2026-01-14T19:30:26.253Z","avatar_url":"https://github.com/bottlerocketlabs.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# remote pbcopy for use over ssh\n\n`pbcopy` is a well-known macOS tool that copies data to the clipboard.\nIt's very useful, but available only in your local machine, not in remote machines.\n\nFortunately, with OSC52 escape sequence,\nwe can access the local machine clipboard via a remote machine.\n\nI prepared a simple tool that is `rpbcopy` for remote machines.\n\n## Install\n\nCopy `rpbcopy` to a directory where `$PATH` is set.\n\n       [local]  $ ssh remote\n       [remote] $ wget -O rpbcopy-linux-amd64.tar.gz https://github.com/bottlerocketlabs/remote-pbcopy/releases/latest/download/rpbcopy-linux-amd64.tar.gz\n       [remote] $ tar xf rpbcopy-linux-amd64.tar.gz\n       [remote] $ mv rpbcopy /path/to/bin/\n\n### iTerm2\n\nFeatures required are not enabled by default\n\n1. First, make sure you use iTerm2 version 3.0.0 or later\n2. Check \"Applications in terminal may access clipboard\" in iTerm2 Preferences:\n\n    ![preferences.png](https://raw.githubusercontent.com/bottlerocketlabs/remote-pbcopy/master/misc/preferences.png)\n\n## Usage\n\nJust like the normal `pbcopy`:\n\n    [local]  $ ssh remote\n    [remote] $ date | rpbcopy\n    [remote] $ exit\n    [local]  $ pbpaste\n    Sun Jan 18 20:28:03 JST 2015\n\n## How about `pbpaste`?\n\nCurrently most terminals do not allow OSC 52 read access for security reasons.\nBut we can just use command+V key to paste content from clipboard.\n\nIf you want to save the content of clipboard to a remote file, try this:\n\n    [remote] cat \u003e out.txt\n    # press command+V to paste content of clipboard,\n    # and press control+D which indicats EOF\n\n## Tested with\n\n* [iTerm2](https://iterm2.com/)\n* [Alacritty](https://github.com/alacritty/alacritty)\n* [abduco](http://www.brain-dump.org/projects/abduco/)\n* [neovim terminal](https://neovim.io/doc/user/nvim_terminal_emulator.html)\n\n## See also\n\nFor OSC52\n\n* http://doda.b.sourceforge.jp/2011/12/15/tmux-set-clipboard/\n* http://qiita.com/kefir_/items/1f635fe66b778932e278\n* http://qiita.com/kefir_/items/515ed5264fce40dec522\n* https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm/etc/osc52.vim\n* https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm/etc/osc52.el\n* https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm/etc/osc52.sh\n* https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Operating-System-Commands\n* https://github.com/fcpg/vim-osc52\n\n## Author\n\n[Shoichi Kaji](https://github.com/skaji/)\n\n## Contributors\n\n* Stuart Warren\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlerocketlabs%2Fremote-pbcopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbottlerocketlabs%2Fremote-pbcopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlerocketlabs%2Fremote-pbcopy/lists"}