How do I copy text from PuTTY to another window?
Solution 1
I've copied from the PuTTY manual:
PuTTY's copy and paste works entirely with the mouse. In order to copy text to the clipboard, you just click the left mouse button in the terminal window, and drag to select text. When you let go of the button, the text is automatically copied to the clipboard. You do not need to press Ctrl-C or Ctrl-Ins; in fact, if you do press Ctrl-C, PuTTY will send a Ctrl-C character down your session to the server where it will probably cause a process to be interrupted.
Solution 2
COPY: Simply highlight text in PuTTY. Press and keep pressed left mouse button + move mouse to highlight the text you want + release left mouse button and text will be copied to the clipboard.
PASTE: Just click the middle mouse button to paste clipboard text in PuTTY itself or every other application that has a text prompt. Please note that modern mice don't have the middle 'button' but usually a wheel, so you have to click on the wheel. If you are using a laptop, tapping on the upper right corner of the touchpad (or on some models, pressing both buttons simultaneously) should reproduce a mouse middle click.
Solution 3
I found the solution here
Problem
Copy Paste text from PuTTY to Another Application on Ubuntu not working
solution
Select the text you want to copy on the screen and leave as it is. This will copy the text to PuTTY clipboard.
pasting to other application:
Go to the other application and press the middle button of the mouse. If your mouse only has two buttons, then press both left and right buttons simultaneously, it will paste the text on the other application. However, if you try to use CTRL + V , it will paste the content which is present in the default clipboard.
This worked for me on Fedora
Solution 4
I had same problem.
Despite suggestion from manual, left mouse button selection for copying text does not work for me.
I had found that middle mouse button does the trick.
Solution 5
Simple; just highlight the text in putty and right click. Note, though, that this will also paste the text into whatever you are working on in Putty.
For example, if you are copying text from Vim or Nano, highlight the text you want to copy, right click it, and then quit without saving.
Related videos on Youtube
![fsquirrel](https://i.stack.imgur.com/S8fDN.jpg?s=256&g=1)
fsquirrel
I'm a SW Engineer. GitHub: https://github.com/f-squirrel Blog: http://ddanilov.me/
Updated on September 18, 2022Comments
-
fsquirrel almost 2 years
I'm using PuTTY on Ubuntu 14.04 (Trusty Tahr) to connect to a serial port. I need to copy text from a PuTTY window to another window (for example, gedit).
UPDATE
I can copy by selecting text with the mouse and paste it by mouse middle click. But it does not work when I paste from another window.
UPDATE1
I haven't succeeded to fix this issue, but I've switched to the Ubuntu-native application GtkTerm which can copy-paste as usual from the Ubuntu terminal.
-
fsquirrel almost 9 yearsThank you for quick reply but for me it does not work... I can copy by selecting(drag and drop) and paste by middle mouse click. But I cannot paste selected to another window.
-
fsquirrel almost 9 yearsI'm not sure that I understand what Windows you mean.
-
m. öztürk almost 9 yearsOhh, sorry, I missed the Ubuntu host part. :) Why do you use Putty and not a normal Terminal with SSH session?
-
fsquirrel almost 9 yearsAs I'm connecting to device via UART. It is serial port connection not ssh.
-
Videonauth about 8 yearsWhile your answer may be valid you could elaborate more about how and aswell format it a bit better, see Help Page
-
Fabiano Tarlao about 7 yearsThis work, but not for all applications, for example it is not possible to copy text directly in Firefox, in a text area of a web page. I need to copy to an opened text editor first.
-
alpha_989 almost 7 yearsthanks for this comment.. it seems there are quite a few conflicting information and posts with little clarification about what system they are using. I guess I can stop looking for a keyboard shortcut after spending numerous hours. i can copy and paste into VIM but for copying from vim into windows applications, I will have to use mouse..
-
jws almost 6 yearsThis answer almost resolved my confusion. Important detail: PuTTY's 'copy' is not to the clipboard. The normal clipboard will still be unmodified. This makes it seem like left button select did nothing. Left button select in PuTTY, then scroll button press in gedit to paste worked.
-
Accountant م about 5 years@fsquirrel the solution is very simple, it's funny. Just don't
CTRL + V
to paste in the other application, use MIDDLE mouse button. -
Nick almost 4 yearsThis worked for my in Ubuntu.
-
fudu over 2 years@Accountantم this worked for me, use MIDDLE mouse button can copy from outside to Putty, also copy from Putty to outside.