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 text.
Putty like copy paste on iterm 2 – Mac OSX May 15, 2014 December 31, 2014 victorjayaseelan Iterm Preferences - General, make sure “copy to clipboard on selection” is enabled. Here, click on the “Copy” option to copy the content. You can also go to the toolbar at the top of your Mac’s screen and select the “Copy” option from the “Edit” menu (if available). Now, go to the place where you want to paste the content and right click on your mouse or trackpad. Here, select the “Paste” option. As the Configuring PuTTY page mentions: 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.
Secure Shell (SSH) is a network protocol that allows you to login 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.
How To Use Copy And Paste In Putty For Mac Os
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.
How To Use Copy And Paste In Putty For Mac Shortcut
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.
Cut And Paste In Putty
More information about the copy/paste options can be found on Section 3.1.1 Copying and pasting text of the Help File.