134

I would like to paste text the Windows clipboard into my PuTTY session using only the keyboard. I am running PuTTY 0.60 on Windows XP.

Usage example: I just selected a bunch of nice text inside of my Emacs on Windows. I then shift my focus to a Putty window. Then I press the magic keyboard shortcut, and the application waiting for input on the other side gets some.

I have tried the keyboard shortcut to paste into cmd, Alt+Space+E+P, but it doesn't paste the clipboard into my PuTTY window.

This question and answer about opening the system menu using Alt+Space looks interesting, but it doesn't bring me closer to an answer.

So, does anyone know how can I paste the Windows clipboard into my PuTTY session using only the keyboard?

181

You can use Shift+Ins to paste text.

From PuTTY documentation:

Pasting is done using the right button (or the middle mouse button, if you have a three-button mouse and have set it up; see section 4.11.2). (Pressing Shift-Ins, or selecting ‘Paste’ from the Ctrl+right-click context menu, have the same effect.) When you click the right mouse button, PuTTY will read whatever is in the Windows clipboard and paste it into your session, exactly as if it had been typed at the keyboard.
  • 5
    Looking at my Macbook air keyboard and windows installed, I wish I had an INS key. – adrianTNT May 10 '16 at 14:54
  • Hey, @adrianTNT , on your Macbook, you can simulate Ins with fn+return. So to paste into putty, you can use shift+fn+return – Jamey Nov 2 '16 at 17:38
  • 3
    BE CAREFUL DOING THIS. Some characters like " may look the same but be interpreted differently once you paste it into PuTTY - and this was copy pasting from notepad++ so it was plain text – Kolob Canyon Nov 10 '16 at 19:12
  • @KolobCanyon yeah I noticed! copying from my editor directly to PuTTY always transformed the text, need to always "transform" to plain text by pasting to notepad before – pocesar Sep 18 '17 at 8:30
  • 4
    In Windows, just right-clicking the PuTTY console window with the mouse and then hitting enter on the keyboard worked for me. (Note that you obviously need to Copy the password to the clipboard first.) – c00000fd Sep 25 '17 at 4:31
0

From the Putty Documentation

4.10.3 Changing the actions of the mouse buttons PuTTY's copy and paste mechanism is modelled on the Unix xterm application. The X Window System uses a three-button mouse, and the convention is that the left button selects, the right button extends an existing selection, and the middle button pastes.

Windows typically only has two mouse buttons, so in PuTTY's default configuration, the right button pastes, and the middle button (if you have one) extends a selection.

If you have a three-button mouse and you are already used to the xterm arrangement, you can select it using the "Action of mouse buttons" control.

You have to change the default behavior by opening Putty > Windows > Selection > Select "xterm (Right extends, middle pastes)"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.