How to copy and paste in Putty

If you are using SSH, there is a big chance that you are using PuTTY. Sometimes, PuTTY users have difficulties to copy/paste shell commands. So, we will explain how to copy/paste the text.

PuTTY Configuration Window
PuTTY Configuration Window

Secure Shell (SSH) is a network protocol that allows you to log in and communicate with a remote computer system in a secured way. You can read more on the Wikipedia page.

Copy text to the clipboard
1. Click left mouse button in the terminal window
2. Keep the left mouse button down and drag the text you want to copy
3. Let go the left button. The text will be automatically copied to the clipboard.

If you are using PuTTY under Windows OS, do not try to use the CTRL-C command to copy text as it will not work. In most cases, this command will interrupt a process.

Paste text from the clipboard
1. Here there is just one step: click the right mouse button. The text from the clipboard will be pasted into the PuTTY terminal window.

Useful PuTTY Shortcuts
Shift-Insert – will paste the clipboard content to the PuTTY terminal window
CTRL+Right mouse button and then select Paste option from the menu – will also paste the text from the clipboard
Left mouse button double-click/ double click and drag – a whole word or a sequence of whole words will be copied
Left mouse button triple-click/ triple-click and drag – PuTTY will copy a whole line or sequence of lines.

More information about the copy/paste options can be found in Section 3.1.1 Copying and pasting text of the Help File.

Leave a Reply