I have Ubuntu 16.04 server edition installed on a remote server.
I am using ssh to connect on it. Today after an update/upgrade, I had new openssh-server package version installed (1:7.2p2-4ubuntu2.1) but configure step failed with : invoke-rc.d: initscript ssh, action "restart" failed.
I know that restarting ssh while being connected through ssh should not be a problem.
I have rebooted my server and ssh is working fine.
When I try manually /etc/init.d/ssh restart the restart is failing.
systemctl status ssh.service result is:
... sshd[9157]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
journalctl -xe result is:
... sshd[10114]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
... sshd[10114]: error: Bind to port 22 on :: failed: Address already in use.
... sshd[10114]: fatal: Cannot bind any address.
... systemd[1]: ssh.service: Main process exited, code=exited, status=255/n/a
I did not change anything to my ssh config, I am using the default one.
Any suggestion to solve this ssh restart issue?
[ubuntu] Ubuntu 16.04 ssh restart failing
Aucun commentaire:
Enregistrer un commentaire