I have emacs running on machine A. I then connect to emacs via a terminal (over SSH) from machine B.

Question: From Machine B, how do I copy text to Machine B's clipboard to paste it, i.e., into a browser?

  • What's your environment (operating system, desktop manager if applies) and what GUI terminal are you using (xterm, rxvt, gnome-terminal, konsole...)? – Felipe Lema May 28 '18 at 15:30
  • Linux with i3 window manager + gnome terminal. – George May 28 '18 at 16:13
  • If I'm understanding correctly, you want to execute a command in an emacs session in A to have same text in B's clipboard. For this, you'll probably need to reverse connect somehow and then use something like xclip (with the correct DISPLAY variable). – Felipe Lema May 28 '18 at 18:25
  • FYI: a related question: emacs.stackexchange.com/questions/41339 – AhLeung May 28 '18 at 21:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.