Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running CentOS 6 on the local machine and using PuTTY.

Selection, copying and pasting text works well inside the PuTTY session. But the clipboard content on the local machine does not change.

My PuTTY version:

Installed Packages
Name        : putty
Arch        : x86_64
Version     : 0.62
Release     : 1.el6.rf
Size        : 4.5 M
Repo        : installed
From repo   : rpmforge
Summary     : Graphical SSH, Telnet and Rlogin client

How to share the clipboard?

share|improve this question

4 Answers 4

up vote 0 down vote accepted

First of all, as William P. Botha said there is absolutely no reason to use putty on Linux. Just open your favorite terminal emulator and run ssh or whatever it is you need to do:

$ ssh user@remote.server.com
$ scp local_file.txt user@remote.server.com:/path/to/remote/file.txt

As for the clipboard, this gets slightly complicated under *nix. You are probably running afoul of the multiple clipboards offered by X (this is a feature, not a bug). Briefly, there are two main "clipboards" for *nix, the PRIMARY and CLIPBOARD. When you select text, that gets copied to the PRIMARY and can be pasted using the middle button of your mouse. Ctrl+C copies to the CLIPBOARD and can be pasted using Ctrl+V. So, depending on which clipboard is in use, you can paste using a different method. See this page on the Arch wiki for some more info.

You may also find one of the may "clipboard managers" useful. They allow you to switch between the clipboards in use and to save some previous selections in a sort of clipboard history to paste on demand. Some of the better known ones are:

  • clipit
  • glippy
  • glipper
  • parcellite
  • klipper
share|improve this answer
    
Thank you very much! Also my thanks to mabagu and Willem P. Botha. –  Olexandr Apr 6 '13 at 16:43
    
Really, I tried to paste using Ctrl+V. Pasting with middle mouse button works. Today I learned two things: about ssh command and about two "clipboards" for *nix. –  Olexandr Apr 6 '13 at 16:50
    
I would vote up, but do not have enough reputation yet. –  Olexandr Apr 7 '13 at 5:28

I would recommend just using the standard terminal or console for this in CentOS as it does everything you need. Putty is normally just used for Windows to Linux.

share|improve this answer

There is a patch to PuTTY available, which is called puttyclip: "This page contains a patched version of putty that allows you to remotely print into the Windows clipboard. A tiny shell script, winclip, can utilize this capability to allow remote (e.g. Unix) programs to pipe their output to the local Windows clipboard, or to copy remote files to the Windows clipboard."

This is apparently not for your putty-version, however i have found a version 0.60 update patch on a blog that probably works with your 0.62 as well. Otherwise you would have to install PuTTY 0.60 if this function is important to you.

share|improve this answer
    
Thank you, Torben, but I'm not running Windows on the local machine. I'm running CentOS... –  Olexandr Apr 6 '13 at 7:44

PuTTy doesn't have it's own clipboard. It uses the 'selection clipboard' from X. Accessible via middle mouse button.

Are you pasting outside PuTTy with middle mouse button? Did you try if pasting from outside PuTTy into Putty works?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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