2

I'm connected to a server via ssh -x and my only way to get text out of the system is the x clipboard (unless i want to take thousends of screenshots and OCR over it).

I can not execute any programs on the other machine, because i don't have access.

How can I achive this?

2 Answers2

6

Use xclip.

On the remote computer

xclip a_text_file_with_some_data.txt

On the local computer

xclip -o > test.txt

You did move the text via the clipboard, but not the "normal" way :)

Johan
  • 825
0

Many terminal emulators (PuTTY, gnome-terminal, Xterm) let you either:

  • log all terminal output to a file, or
  • set a really big scrollback buffer (01000 lines or so) and then copy all of it.
grawity
  • 17,092