Options

sshd having to restart

joshgibson82joshgibson82 Member Posts: 80 ■■□□□□□□□□
Hi Guys. I'm a newbie to Linux first off. I have openSuSE 10.3 on a dell server. I am using FreeNX to remote console into the box. It works fine, except after I have a session up, and then close it...I have to log on the console of the linux box and run service sshd restart in order to be able to log into the box again. I can't use putty or FreeNX to log in. It's almost like it locks up service. I do not even get a login prompt...just "connection refused."

Any help would be awesome!!!!

Josh
Josh, CCNP CWNA

Comments

  • Options
    undomielundomiel Member Posts: 2,818
    Check your logs and see what errors are happening with sshd. Check your MaxStartups as maybe you're only allowing one session and that session is not being freed when you disconnect from the machine.
    Jumping on the IT blogging band wagon -- http://www.jefferyland.com/
  • Options
    MishraMishra Member Posts: 2,468 ■■■■□□□□□□
    undomiel hit it I'm pretty sure.

    I haven't used FreeNX but it sounds like when you disconnect it doesn't actually drop the session.
    My blog http://www.calegp.com

    You may learn something!
  • Options
    livenliven Member Posts: 918
    I would check to see if the sshd daemon is even running.


    For instance if you can't ssh to the linux box, manually connect, then do

    ps -aux | grep ssh

    (aux may be ef on suse)

    If the service isn't running there is your answer. You will have to look at the messages,error and sshd log to find out why it is crashing.

    However, if your ssh connection is not getting termainted when you close your ssh client, this shouldn't effect your ability to log back in. You should be able to spawn multiple ssh connections to and from the server.
    encrypt the encryption, never mind my brain hurts.
  • Options
    undomielundomiel Member Posts: 2,818
    On opensuse to check the service you would want to run

    service sshd status

    Just an alternative to liven's method of checking.
    Jumping on the IT blogging band wagon -- http://www.jefferyland.com/
  • Options
    livenliven Member Posts: 918
    undomiel wrote:
    On opensuse to check the service you would want to run

    service sshd status

    Just an alternative to liven's method of checking.


    This method works on other versions of linux as well.


    On fedora, cent, red hat etc....


    you can use

    /etc/init.d/sshd (start|stop|status)




    Thanks for pointing this out undomiel!!!
    encrypt the encryption, never mind my brain hurts.
Sign In or Register to comment.