LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copy/Paste via ssh doesn't work (https://www.linuxquestions.org/questions/linux-newbie-8/copy-paste-via-ssh-doesnt-work-710096/)

ccargo 03-08-2009 04:32 PM

Copy/Paste via ssh doesn't work
 
Hi!

I hope I'm posting this in the right section, at least it feels like a newbie question.

When I ssh into my computer at work I can't copy/paste text from the remote shell to a shell on my local machine. I've tried both highlighting the text and using the middle mouse button as well as Ctrl-ins/Shift-ins.

My local computer is running Slackware with Bash and my work computer runs Fedora. I log in with 'ssh -fX hostname xterm'. I've never experienced this problem before and I'm fairly new to Slackware (used suse, debian, and ubuntu before) so I'm hoping someone can help me out.

Best regards

Tinkster 03-08-2009 04:59 PM

Hi,

and welcome to LQ!

What window manager/DE are you using on slack? I have no problems with copy &
paste to/from remote sessions under Slack using fluxbox and rxvt (or xterm, for
that matter) as my local environment.



Cheers,
Tink

ccargo 03-08-2009 05:04 PM

Hi,

Thank You!

I'm using XFCE on the slack machine. I used that in the other distros as well but maybe i've missed a configuration somewhere. I've tried with xterm locally as well.

Regards,

Cash

ccargo 03-08-2009 05:09 PM

Hm, an update: If I connect with ssh -fY everything works as it should. So the -X option in my slack installation seems more restrictive than that under other distros?

Tinkster 03-08-2009 05:11 PM

And xterm local to local doesn't work either?

ccargo 03-08-2009 05:20 PM

I think I've got it down now, I need to read up on ssh but everything works.

On my local machine I can paste normally between all xterms.

If I connect with ssh -X I can paste between all remote xterms.

To paste between a local xterm and a remote xterm I need to connect with ssh -Y instead, which is less restrictive (if I understand the man-file correctly).

The only weird part is that ssh -X seemed to allow paste on my previous distros.

Thank you for helping!

Tinkster 03-08-2009 05:30 PM

I didn't help, really :}

I'm confused as to why the less restrictive version does work, though, my understanding
was that only the local primitives would be used for the copy & paste business, so I'd
have thought that if you see anything on screen you should be able to copy & paste it.

Odd.

:}

Will have to find an FC machine to play with ;}


[update]
A quick test from a slack to a RH server 5.2 machine works
just as expected, whether I just use ssh, ssh -X makes no
difference ... I find your results with the FC box quite
bewildering, to say the least.
[/update]


Cheers,
Tink


All times are GMT -5. The time now is 01:06 AM.