Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to disable Copy & Paste on Linux so that people using Putty or any other ssh client can't copy & paste from the server to their own machine?

share|improve this question
up vote 3 down vote accepted

You wouldn't be able to disable the functionality of another machine's rendering of the output your server sends to it.

The output on putty uses the rules setup in Putty for copying the data displayed on the screen. Meaning that the data displayed on the screen is the output from your server to the terminal and the source (Linux) no longer has control of that data.

You could change the installed options for each of the terminals connecting to your server assuming you have admin power over those machines as well.

As a suggestion for controlling things on the server side I would restrict the ability to display data that you wouldn't want copy/pasted or restrict access to the server at all from ssh for users. Meaning you could wrap a lot of functions in sudo or not allow access to databases or portions of the file system.

share|improve this answer

No; copy and paste happens on the client side and is invisible to you.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .