LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2009, 04:32 PM   #1
ccargo
LQ Newbie
 
Registered: Feb 2009
Distribution: Slackware
Posts: 20

Rep: Reputation: 1
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
 
Old 03-08-2009, 04:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 03-08-2009, 05:04 PM   #3
ccargo
LQ Newbie
 
Registered: Feb 2009
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 1
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
 
Old 03-08-2009, 05:09 PM   #4
ccargo
LQ Newbie
 
Registered: Feb 2009
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 1
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?
 
Old 03-08-2009, 05:11 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And xterm local to local doesn't work either?
 
Old 03-08-2009, 05:20 PM   #6
ccargo
LQ Newbie
 
Registered: Feb 2009
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 1
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!
 
Old 03-08-2009, 05:30 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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

Last edited by Tinkster; 03-08-2009 at 05:55 PM. Reason: [update]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy paste... gumuruhsspj Linux - General 3 09-28-2008 01:17 PM
SSH Copy/Paste Freezes terminal?!? cole42 Linux - General 3 03-18-2008 12:01 PM
copy paste hammam12 Linux - Software 12 07-09-2006 01:32 PM
Copy Paste zaicheke Linux - Software 8 04-09-2005 04:45 AM
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 09:25 AM


All times are GMT -5. The time now is 02:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration