Why when I try to vnc or ssh into suse linux sometimes the server hangs ... need to hard set server to login

Posted on 2008-06-18
Medium Priority
Last Modified: 2013-12-05
I found this searching google and then purchased a "trial" membership for this site, because we are experiencing the same issue.  After my purchase and subsequent login to have the answer revealed, there was no answer to this question.
If anyone has any suggestions or areas to check, any info would be appreciated.


Recently, I can not ssh to my remote servers or vnc to the boxes.

When I do a ssh  command it will hang and can not get a the connection to a remote server.
I then try to vnc to the remote server my gnome desktop does not give me a login screen
it just display a gray screen and a cross mouse cursor.
If I reboot the remote server everything will work normally for a few days and same problem

I am a newbie to Suse linux and have to administor over 60 remote servers and some servers work
fine and some has the above mention problems.  I don't know where to start troubleshooting. And don't
want to reboot the servers all the time.  If you need any futher info just let me know.
Any assistance will be appreciated.
Novell, Suse Linux Enterprise server, sles10 sp1, behind firewall
Question by:abfab
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 79

Expert Comment

ID: 21818991
There is not enough information to determine what your issue is.
One thing, why are you running the remote server in graphical mode?  You will likely fair better changing the runlevel in inittab to 3 multi-user.

What does the server do?  It might be running out of memory which will explain why everything works after reboot, but becomes unresponsive after several days.
When you do get into the system, have you looked at the logs for ssh, messages, syslog, etc. to see whether any errors were recorded?
Have you tried getting to a different server on the same segment and then accessing this server?  Just checking whether the firewall locks out this server for some reason.
LVL 16

Expert Comment

ID: 21820696

The gray screen with the cursor sounds like you logged in but you are using the twn manager.

You will need to edit the xstartup script located in the .vnc directory

Replace the following in the xstartup script

twm &


gnome-session &

Let me know if that works.

Author Comment

ID: 21822229
When I checked the server there is no .vnc directory.. (that I could find - I am also new to linux).  The server freezes even if we try to just ssh via putty or while trying to use a vnc client.  Again this happens over time...  After a hard reboot of the server we are able to login remotely, but only for a time.

We are running SLES 10 sp1 kernel 2..16.54-0.2.5-bigsmp  

As with the last person, I am not sure where to start troubleshooting this problem  I am configuring the servers to runlevel 3 (no desktop) and see if tha helps.  But would prefer the desktop because I am not familiar with all of the conf files that yast and the interface takes care of when I make configuration changes.  (Learning curve... uuugh)

There was a suggestion to remove the /tmp/X0-lock and the /tmp/.X11-unix/X0 files and restart the services and see if that clears up the problem.    Once we find the solution we will post for all.. if we find the solution....

Thanks again
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.


Expert Comment

ID: 21823132
It sounds like you have two problems: one with SSH, the other with VNCSERVER.  

With the first problem, when you cannot connect to a remote server, you can run "ssh -v" which will tell you what is going on between client and server.  You can use multiple "-v"s to get more detailed information.  

The second problem is VNC server configuration, as mentioned by xDamox.  I don't know how SLES starts the server.  Fedora has a configuration script in /etc/sysconfig/vncservers which tells the server how to start. This will say which user should get a vnc session.  Look in /etc/init.d for vncserver or similar to see how it starts.  

Finally, if the server works for a while, then stops working, it's probably not a configuration problem.  Take a look in /var/log/messages (or other files in /var/log) and see if something happened which would cause a failure.  

Author Comment

ID: 21824549
Thanks very much.. I will look at those leads....

Accepted Solution

Alundrez earned 1500 total points
ID: 21942438
The problem is not SSH or VNC, you're looking at secondary issues. You're unable to SSH or VNC into the boxes as a result of the servers crashing in a way that doesn't bring them completely down.

I've seen memory leaks, constant memory swapping, etc happened on a server but it still ran some applications properly while intermittently killing other applications such as SSH and GNOME/KDE.

You should physically inspect your box through the console when you're experiencing the problem.

Run top then ps -ef and see what your server is doing.
tail -f /var/log/messages
check application logs
dmesg | less

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question