How to disable copy/paste in azure ubuntu machine?

Shubham Singh 21 Reputation points
2021-07-27T12:38:06.777+00:00

I want to disable, copy paste option disable for azure Ubuntu 20. User cannot copy from VM and also cannot paste into VM.

Can anyone have any suggestions??

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,014 questions
{count} votes

Accepted answer
  1. ChristopherW-MSFT 1,681 Reputation points
    2021-07-27T22:33:43.557+00:00

    Hi @Anonymous ,

    If your access is SSH then it may not be possible - you can only disable Copy + Paste at the client terminal level like PuTTY configuration, the text is presented to the terminal client and wouldn't be restricted after it's presented.

    You would need to manage and configure each SSH Client to not allow Copy + Paste. If the concern is to protect data, then you will want to avoid presenting any protected information through the terminal session and to specific users you don't want displayed to.

    For Copy + Paste in a Desktop environment, typically this is controlled by a 'Clipboard' feature, and can sometimes be disabled but is determined by that specific service.
    As an example, you can try starting an XRDP session with the Clipboard disabled with: rdesktop -r clipboard:off XRDPSERVER

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Shubham Singh 21 Reputation points
    2021-07-28T04:52:23.287+00:00

    Hello @ChristopherW-MSFT ,

    I want to disable copy/paste option in GUI for Ubuntu 20. I am accessing GUI via RDP. For this I have install xrdp in Ubuntu.

    The command which you have provide "rdesktop -r clipboard:off XRDPSERVER" will this work?

    Help me on this.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.