Many people use Windows as primary working machine and login to remote Linux/Unix (we will use Linux as shorthand afterwards) boxes. There are times when we need to copy and paste information between Windows and Linux. Below we are going to discuss convenient ways to do so.
PuTTY and Xming are two popular programs to run in Windows host to facilitate communication to Linux. PuTTY provides console connection while Xming X Window connection. For Xming, Ensure you start Xming with parameter -clipboard (which is enabled by default). Our discussion below is focused on how to copy/paste within PuTTY/Xming. Copy/paste for other Windows applications is quite general (Ctrl+C and Ctrl+V) and should be familiar to the reader, therefore omitted.
Copy to clipboard: click-and-drag to highlight. Just select, no need to press any key.
Paste from clipboard: right mouse button.
For Xming applications, copy/paste follows the X window standard as discussed below.
Copy to clipboard: click-and-drag to highlight. Same as PuTTY.
Paste from clipboard: middle mouse button.