LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-05-2007, 09:19 AM   #1
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Rep: Reputation: 15
ssh -X very slow/hanging in Slackware 12


I am using Slackware 12. I am in a univ where I connect to a Linux based server that has MATLAB installed. I am in a Local Area Network.

I try to connect to the server by:

ssh -X <server i.p>

I can login successfully. When I try some program in text mode like reading a file using less or vi, I have no problems. When I run MATLAB it simply hangs. I get the MATLAB splash screen but once the main command window comes, everything slows down. Even my mouse moves slowly. The same goes for any graphical software like gedit etc. When I check the traffic on my network monitor its 100 bytes per second. The LAN supports traffic of around 500 kilobytes/second to 1 Megabytes/second. Even internet traffic that takes place through a proxy server is around 50 kbps.

I have a CentOS 5 system as dual boot where ssh -X works fine and I can run MATLAB. So there is no hardware issue.

Google searches mainly deal with people having problems with logging in or with get display in ssh -X mode. I am getting graphics but its too slow.

Please help.
 
Old 10-05-2007, 01:55 PM   #2
eagleheart
Member
 
Registered: Apr 2007
Location: Athens, Georgia, USA
Distribution: kubuntu 12.04, centos 6.3
Posts: 31

Rep: Reputation: 16
May be a long shot but...

-X Enables X11 forwarding
-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.

If your are allowed to, try ssh -Y (ip). I always use that at home with slackware.

hth

JohnI
 
Old 10-06-2007, 12:51 AM   #3
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Original Poster
Rep: Reputation: 15
Thanks. It worked. MATLAB runs like a beauty now. I can't believe I didn't try this out. I have always used ssh -X without problems and stuck to it. Never thought about security issues.
 
Old 10-06-2007, 10:24 PM   #4
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
You might want to dig further to find out what's screwing up forwarding, because "trusted" is somewhat of a misnomer in this context. Doing this from a shared host can lead to someone who shouldn't be allowed to being able to attach to your display (needless to say that's probably not what you want).

Check the DISPLAY variable's value on the host you're ssh-ing into. Most of the time when I've found X forwarding behaving oddly it's been because it's contained a hostname instead of an IP address.
 
Old 10-07-2007, 08:56 AM   #5
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Original Poster
Rep: Reputation: 15
I checked it out. ssh -Y <I.P. address> and then echo $DISPLAY gives me
localhost:11.0
ssh -Y <hostname> also gives me localhost:11.0

I tried out ssh -X <I.P address> and got:
localhost:16.0
When I try ssh -X <hostname> again I get localhost:16.0

ssh -X doesn't work with hostname or with I.P address while ssh -Y works with hostname or I.P address.
 
  


Reply



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
ssh very slow/hanging in Slackware 12 shivkiyer Linux - Networking 5 10-05-2007 09:09 AM
Problem with ssh hanging, but only on Linux tomj88 Linux - Networking 12 05-28-2006 09:09 PM
ssh/tcp hanging/sleeping problem Jim Deakin Linux - Networking 0 12-13-2005 07:11 AM
Console hanging and scp transfer low when using ssh XStorm Linux - Networking 1 12-08-2003 09:34 PM
gFTP hanging or r-e-a-l slow kaine Linux - Software 4 07-06-2003 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:43 PM.

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
Open Source Consulting | Domain Registration