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
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
Try running:
that should show you the error, if not add another vCode:ssh -v user@server
Look in /var/log on the server for any sshd error messages.
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...
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.
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
This is still happening. There's nothing in syslog when I grep for ssh.
Was there anything telling from "/usr/sbin/sshd -Dd" ?
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.
Bookmarks