On 09-12 08:20, Brett Mahar wrote:
> I know `ssh -X` is more secure, I use this when I can but use the `ssh -Y` 
> version when I need ability to copy and paste.

While this probably doesn't solve your main problem, it might be useful 
afterward.  For what it's worth, I have used ssh -X extensively and copy/paste 
successfully, so it is a little more secure than ssh -Y for most things.  I 
have added some config to help it work between apps that used different 
clipboards, to ease interoperability, in the ~/.Xdefaults of the user running X:

XTerm*selectToClipboard: true
 *VT100*translations:    #override \
   Ctrl Shift <Key>V:    insert-selection(CLIPBOARD, CUT_BUFFER1) \n

...and where that doesn't work (depends on which apps and in which direction I 
copy/paste between them), I have a couple of scripts using the xc command (from 
ports/packages) to work around that.

Then workarounds:  I only use ssh -Y occasionally, for a very few apps that 
seem to only function with it.  This is not an area where I have deep 
understanding, but I did a bunch of web searches, reading and some 
experimenting.  I am also careful what I copy to the clipboard, because any app 
(probably including those running as different users) can see it,   And when 
that really breaks down (eg, multiline copy/paste from browser to a text-mode 
app), I just paste into a world-readable text file from one user, and pull it 
out as the other user.

If any of this is bad practice I would appreciate the feedback.  

(I probably wouldn't use ssh -X much, if I could start more than one X session 
in different ctrl-alt-fX consoles, as different users, to run at the same time 
as I used to always do on debian.)

Reply via email to