Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: SSH doesn't run properly after boot

  1. #1
    Join Date
    Apr 2006
    Beans
    Hidden!

    SSH doesn't run properly after boot

    Openssh-server gives an error after boot forcing me to manually restart the service from a tty. This is a headless box, so that's not what you might call "practical"
    Error:
    Code:
    ssh_exchange_identification: Connection closed by remote host

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: SSH doesn't run properly after boot

    Try running:

    Code:
    ssh -v user@server
    that should show you the error, if not add another v

  3. #3
    Join Date
    Jun 2006
    Location
    Brisbane Australia
    Beans
    713

    Re: SSH doesn't run properly after boot

    Look in /var/log on the server for any sshd error messages.

  4. #4
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: SSH doesn't run properly after boot

    This is all I found: fatal: Missing privilege separation directory: /var/run/sshd

    That directory exists now, though, and the message was three days old. I've rebooted several times since then, with SSHD not accepting anything.

    ssh -vv gave nothing, but then that was run clientside, so I'm not sure what you were looking for...

  5. #5
    Join Date
    Jun 2006
    Location
    Brisbane Australia
    Beans
    713

    Re: SSH doesn't run properly after boot

    Quote Originally Posted by tofagerl View Post
    This is all I found: fatal: Missing privilege separation directory: /var/run/sshd

    That directory exists now, ..
    You gotta be concerned how such an odd issue arose though? I suspect you have other problems in your installation. Perhaps flush and reinstall on your server?
    Code:
    sudo aptitude purge openssh-server
    sudo aptitude install openssh-server

  6. #6
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: SSH doesn't run properly after boot

    Well, this happened about a week after I formatted and installed 12.4. I had used arch just for fun, but it was driving me up the wall, so I went back to ubuntu for stability.

    I might do a complete reinstall, it wouldn't be a huge problem for me, but as far as possible I'd like to know what went wrong first.

  7. #7
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: SSH doesn't run properly after boot

    Does /var/log/syslog say anything about sshd's startup? What about stopping sshd and then starting it manually in debug mode?

    Code:
    sudo service ssh stop
    sudo /usr/sbin/sshd -Dd

  8. #8
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: SSH doesn't run properly after boot

    This is still happening. There's nothing in syslog when I grep for ssh.

  9. #9
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: SSH doesn't run properly after boot

    Was there anything telling from "/usr/sbin/sshd -Dd" ?

  10. #10
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: SSH doesn't run properly after boot

    Yes and no...

    stop: Unknown instance:

    It's a headless server, so I can't manually stop and restart the server, it has to be in one line.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •